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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474c40
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4941b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], edi
cmp dword [eax + 0x14], 8
jb 0x43733f
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x437571
cmp esi, 0xffffffff
je 0x437571
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
push eax
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4373b1
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004270d0
mov dword [edi], eax
mov dword [ebp - 4], 2
jmp 0x437597
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x2c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
mov eax, 0x5a4d
mov byte [ebp - 4], 3
cmp word [ebx], ax
je 0x43740a
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004270d0
push 0x4000
push dword [ebp - 0x2c]
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 4
jmp 0x437597
mov ecx, dword [ebx + 0x3c]
mov edx, 0x10b
add ecx, ebx
mov dword [ebp - 0x44], ecx
movzx eax, word [ecx + 0x18]
cmp ax, dx
je 0x437442
mov ecx, edi
call fcn.00434790
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 6
jmp 0x437597
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
cmp dword [ecx + 0x84], 0
mov dword [ebp - 0x3c], eax
jne 0x437479
mov ecx, edi
call fcn.00434790
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 7
jmp 0x437597
lea ecx, [ebp - 0x38]
call fcn.00434790
mov eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x3c]
mov byte [ebp - 4], 8
push dword [eax + 0x80]
call fcn.00435e40
add eax, 0xc
add esp, 0xc
add eax, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x437529
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x3c]
push eax
call fcn.00435e40
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ebx + eax]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4374e0
sub ecx, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040bcc0
push dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041a390
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00409820
mov eax, dword [edi + 0x14]
add edi, 0x14
test eax, eax
jne 0x4374b2
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004270d0
mov ecx, dword [ebp - 0x38]
mov dword [edi], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x38]
mov dword [edi + 4], eax
call fcn.00421fa0
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 0xa
jmp 0x437597
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004270d0
mov dword [edi], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x43759e
cmp esi, 0xffffffff
je 0x43759e
push esi
call dword [0x47d840]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004639dd
mov esp, ebp
pop ebp
ret