Function at 0x4075d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x415c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [esp + 0x48], esi
call ebp
cmp eax, 0xffffffff
jne 0x4076cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x407632
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jne 0x407910
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x407671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x407667
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jl 0x407910
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov ecx, edi
and ecx, ebx
mov byte [esp + 0x2c], 1
cmp ecx, 0xffffffff
jne 0x407721
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4076d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4076e0
and eax, 0xffff
or eax, 0x80070000
jmp 0x4076de
mov dword [esp + 0x10], eax
jmp 0x407638
mov dword [esp + 0x38], eax
jmp 0x4076e6
test eax, eax
jne 0x407783
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x40771b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407715
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40776c
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edi, eax
cmp dword [esp + 0x14], edi
jne 0x4078ff
cmp dword [esp + 0x18], ebx
jne 0x4078ff
cmp dword [esp + 0x38], 0xffffffff
jne 0x4077a1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40779d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4077d6
and eax, 0xffff
or eax, 0x80070000
jmp 0x4077d4
lea ecx, [esp + 0x38]
call fcn.00407940
lea ecx, [esp + 0x10]
call fcn.00407940
jmp 0x407921
lea ecx, [esp + 0x38]
call fcn.00407940
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407921
jmp 0x407918
mov dword [esp + 0x38], eax
push 0x10000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
xor edi, edi
add esp, 4
cmp ebp, edi
jne 0x4077fa
cmp dword [esp + 0x38], edi
je 0x4077c5
lea ecx, [esp + 0x38]
call fcn.00407940
cmp dword [esp + 0x10], edi
je 0x407921
jmp 0x407918
test eax, eax
je 0x4077a1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4077e9
lea ecx, [esp + 0x38]
call fcn.00407940
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407921
jmp 0x407918
mov dword [esp + 0x34], 1
cmp dword [esp + 0x18], edi
ja 0x407814
mov ebx, dword [esp + 0x14]
cmp ebx, 0x8000
jb 0x407819
mov ebx, 0x8000
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x3c]
push edi
push ecx
push ebx
push ebp
push edx
mov dword [esp + 0x50], edi
call esi
test eax, eax
jne 0x407881
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40784c
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jne 0x4078c9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edi
push edi
push eax
lea edi, [ebp + 0x8000]
push ebx
push edi
push ecx
call esi
test eax, eax
jne 0x407889
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407893
and eax, 0xffff
or eax, 0x80070000
jmp 0x407891
cmp dword [esp + 0x3c], ebx
jne 0x4078c9
jmp 0x40784e
cmp dword [esp + 0x3c], ebx
jne 0x4078c7
jmp 0x407895
test eax, eax
jne 0x4078c7
mov ecx, ebx
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4078a3
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub edx, ebx
sbb ecx, 0
cmp ebx, 0x8000
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jbe 0x4078cd
xor edi, edi
jmp 0x407802
xor edi, edi
mov dword [esp + 0x34], edi
push ebp
call fcn.00414a60
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00407940
lea ecx, [esp + 0x10]
call fcn.00407940
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x407910
lea ecx, [esp + 0x38]
call fcn.00407940
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407921
lea ecx, [esp + 0x10]
call fcn.00407940
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret