Function at 0x4037ab
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 4
mov eax, ebp
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
push 4
mov eax, ebp
add eax, 8
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0x80000000
push dword [ebp + 0x14]
call fcn.00402b1c
push eax
pop eax
mov dword [ebp + 8], eax
push dword [ebp + 8]
push 1
pop eax
imul eax, eax, 0xffffffff
push eax
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x40380f
mov eax, 0xffffffff
not eax
mov dword [esp], eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 5
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jb 0x403838
mov ecx, 0
mov dword [esp], ecx
pop ebx
pop eax
sub esp, 4
or eax, ebx
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x40385d
push 0xffffffffffffffff
pop eax
mov dword [ebp + 0xc], eax
jmp 0x403aa5
mov ecx, dword [ebp - 4]
call fcn.00402c60
mov eax, 4
push eax
mov ecx, dword [ebp - 4]
mov eax, ecx
push eax
push dword [ebp + 8]
call fcn.00404783
mov ecx, dword [ebp - 4]
mov eax, ecx
push eax
call fcn.00405fe9
mov ecx, dword [ebp - 4]
push dword [ecx]
mov eax, 0x10
push eax
pop ebx
pop eax
sub esp, 4
imul eax, ebx
mov dword [esp], eax
mov eax, 4
push eax
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
pop eax
pop ebx
sub esp, 4
xor eax, ebx
je 0x4038ca
mov eax, 0xffffffff
mov dword [esp], eax
pop eax
cmp eax, 0
je 0x4038e5
push 0xfffffffffffffffe
pop eax
mov dword [ebp + 0xc], eax
jmp 0x403aa5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 0x14
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
call fcn.004011ef
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
pop eax
mov dword [ecx], eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
mov eax, 4
push eax
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push dword [ecx]
push dword [ebp + 8]
call fcn.00404783
push 0
push 4
mov eax, ebp
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_RtlFillMemory]
push 0
pop eax
mov dword [ebp + 4], eax
jmp 0x403980
push dword [ebp + 4]
push 1
pop ebx
pop eax
sub esp, 4
add eax, ebx
mov dword [esp], eax
pop eax
mov dword [ebp + 4], eax
push 0xffffffffffffffff
pop eax
cmp eax, 0
je 0x4039bf
push dword [ebp + 4]
mov ecx, dword [ebp - 4]
push dword [ecx]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jle 0x4039b6
mov ecx, 0
mov dword [esp], ecx
pop eax
jmp 0x4039ed
push dword [ebp + 4]
mov ecx, dword [ebp - 4]
push dword [ecx]
push 1
pop ebx
pop eax
sub esp, 4
sub eax, ebx
mov dword [esp], eax
pop ebx
pop eax
sub esp, 4
mov ecx, 0xffffffff
cmp eax, ebx
jge 0x4039e9
mov ecx, 0
mov dword [esp], ecx
pop eax
cmp eax, 0
je 0x403a99
mov ecx, dword [ebp - 4]
add ecx, 4
push dword [ecx]
push dword [ebp + 4]
pop ebx
imul ebx, ebx, 0x10
pop ecx
add ecx, ebx
mov eax, ecx
push eax
call fcn.00405fe9
mov ecx, dword [ebp - 4]
add ecx, 4
push dword [ecx]
push dword [ebp + 4]
pop ebx
imul ebx, ebx, 0x10
pop ecx
add ecx, ebx
add ecx, 4
mov eax, ecx
push eax
call fcn.00405fe9
mov ecx, dword [ebp - 4]
add ecx, 4
push dword [ecx]
push dword [ebp + 4]
pop ebx
imul ebx, ebx, 0x10
pop ecx
add ecx, ebx
add ecx, 0xc
mov eax, ecx
push eax
call fcn.00405fe9
mov ecx, dword [ebp - 4]
add ecx, 4
push dword [ecx]
push dword [ebp + 4]
pop ebx
imul ebx, ebx, 0x10
pop ecx
add ecx, ebx
add ecx, 8
mov eax, ecx
push eax
call fcn.00405fe9
jmp 0x403967
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
add esp, 4
mov esp, ebp
pop ebp
add esp, 0xc
ret 4