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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
mov dword [ebp - 0x4b8], ecx
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28]
call fcn.0043c230
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00401900
mov byte [ebp - 4], 3
mov byte [ebp - 0x49c], 0
mov dword [0x53a030], 1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x498], eax
cmp dword [ebp - 0x498], 0xffffffff
jne 0x43765c
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.004e812c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004e812c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401840
mov eax, dword [ebp - 0x4ac]
jmp 0x437954
push 0
mov ecx, dword [ebp - 0x498]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4376cf
mov dword [ebp - 0x4b0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.004e812c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004e812c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401840
mov eax, dword [ebp - 0x4b0]
jmp 0x437954
mov dword [ebp - 0x2c], 0
mov edx, 1
test edx, edx
je 0x43780f
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
jb 0x4376f0
jmp 0x43780f
cmp dword [ebp - 0x10], 0x1000
jae 0x437704
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4bc], ecx
jmp 0x43770e
mov dword [ebp - 0x4bc], 0x1000
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4a0], edx
push 0
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x4a0], ecx
mov edx, dword [ebp - 0x4a0]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x4a4], 0
jmp 0x437771
mov eax, dword [ebp - 0x4a4]
add eax, 1
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
cmp ecx, dword [ebp - 0x4a0]
jae 0x437798
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x4a4]
mov al, byte [ebp - 0x49c]
add al, byte [edx]
mov byte [ebp - 0x49c], al
jmp 0x437762
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [ebp - 0x4a0]
jae 0x4377fe
mov edx, dword [ebp - 0x4a0]
sub edx, dword [ebp - 0x90]
mov dword [ebp - 0x4a8], edx
mov eax, dword [ebp - 0x4a0]
sub eax, dword [ebp - 0x90]
cmp dword [ebp - 0x4a8], eax
jae 0x4377ec
mov ecx, dword [ebp - 0x4a0]
sub ecx, dword [ebp - 0x90]
sub ecx, dword [ebp - 0x4a8]
mov edx, dword [ebp - 0x4a8]
add edx, ecx
mov dword [ebp - 0x4a8], edx
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x90]
mov dword [ebp - 0x2c], ecx
jmp 0x4376d6
mov edx, dword [ebp - 0x498]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 1
jle 0x437867
mov eax, dword [ebp - 0x49c]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x51f77c
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x51f7b4
push 0x51f7c0
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x437891
mov edx, dword [ebp - 0x49c]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x51f7e0
lea edx, [ebp - 0x494]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.004e819a
mov byte [ebp - 4], 4
cmp dword [ebp + 0x10], 1
jle 0x4378d6
cmp dword [ebp + 0x14], 0
je 0x4378d6
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x4b8]
call fcn.0043bba1
jmp 0x4378f5
mov edx, dword [ebp + 0x14]
push edx
push 0
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x4b8]
call fcn.0043bba1
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x4b4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004e812c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.004e812c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004e812c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401840
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10