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

Disassembly:
mov eax, 0x406038
call fcn.00404fe0
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push esi
mov ebx, 0x80000000
push 1
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call edi
cmp eax, 0xffffffff
jne 0x4032f7
call fcn.00403507
jmp 0x4032fc
mov dword [ebp - 0x10], eax
xor eax, eax
cmp eax, esi
jne 0x4034e9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x403326
call fcn.00403507
cmp eax, esi
jl 0x4034e9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp eax, esi
jne 0x4034e9
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
and eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x4033ba
push esi
push 0x80
push 3
push esi
push 1
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x40336b
call fcn.00403507
jmp 0x403370
mov dword [ebp + 0xc], eax
xor eax, eax
cmp eax, esi
jne 0x4033ad
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x403396
call fcn.00403507
cmp eax, esi
jl 0x4034c8
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
xor eax, eax
cmp eax, esi
je 0x4033ba
jmp 0x4034c8
lea ecx, [ebp + 0xc]
call fcn.0040351c
jmp 0x4034e9
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x20], eax
jne 0x4034dc
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x1c], eax
jne 0x4034dc
cmp dword [ebp + 0xc], 0xffffffff
jne 0x403402
push esi
push 0x80
push 3
push esi
push 1
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4033f5
call fcn.00403507
jmp 0x4033fa
mov dword [ebp + 0xc], eax
xor eax, eax
cmp eax, esi
jne 0x4034dc
push 0x10000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x4034dc
mov dword [ebp + 0x14], 1
mov ebx, 0x8000
cmp dword [ebp - 0x1c], esi
ja 0x403430
mov edi, dword [ebp - 0x20]
cmp edi, ebx
jb 0x403432
mov edi, ebx
lea eax, [ebp - 0x14]
push esi
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403452
call fcn.00403507
jmp 0x403459
cmp dword [ebp - 0x14], edi
jne 0x4034b9
xor eax, eax
cmp eax, esi
jne 0x4034b9
lea eax, [ebp - 0x14]
push esi
push eax
mov eax, dword [ebp + 8]
add eax, 0x8000
push edi
push eax
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403483
call fcn.00403507
jmp 0x40348a
cmp dword [ebp - 0x14], edi
jne 0x4034b9
xor eax, eax
cmp eax, esi
jne 0x4034b9
mov eax, dword [ebp + 8]
push edi
add eax, 0x8000
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4034aa
mov dword [ebp + 0x14], esi
sub dword [ebp - 0x20], edi
sbb dword [ebp - 0x1c], esi
cmp edi, ebx
jbe 0x4034bc
jmp 0x403424
mov dword [ebp + 0x14], esi
push dword [ebp + 8]
call fcn.00404fc3
mov esi, dword [ebp + 0x14]
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0040351c
lea ecx, [ebp - 0x10]
call fcn.0040351c
mov eax, esi
jmp 0x4034f8
cmp dword [ebp + 0xc], esi
je 0x4034e9
lea ecx, [ebp + 0xc]
call fcn.0040351c
cmp dword [ebp - 0x10], esi
je 0x4034f6
lea ecx, [ebp - 0x10]
call fcn.0040351c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret