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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48107d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.0041c600
lea ecx, [ebp - 0x40]
call fcn.004259e0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x433a4b
lea edx, [ebp - 0x40]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x60]
call fcn.0041c600
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041e3f0
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041e670
mov eax, dword [ebp + 8]
jmp 0x433bf8
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x433ab9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x6c]
call fcn.0041c600
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041e3f0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041e670
mov eax, dword [ebp + 8]
jmp 0x433bf8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x44]
ja 0x433ad5
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.00425860
jmp 0x433ae6
push 0
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00425a30
lea edx, [ebp - 0x40]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x433b04
mov dword [ebp - 0x48], 1
jmp 0x433b0b
mov dword [ebp - 0x48], 0
mov dl, byte [ebp - 0x48]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x433b27
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x433b61
cmp dword [ebp - 0x20], 0xffffffff
jne 0x433b75
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x40]
call fcn.00425860
mov byte [ebp - 4], 0
jmp 0x433ba8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x50]
ja 0x433b97
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x40]
call fcn.00425860
jmp 0x433ba8
push 0
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
call fcn.00425a30
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x84]
call fcn.0041c600
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041e3f0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041e670
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret