Function at 0x4016d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x409360
push eax
mov eax, 0x32004
mov dword fs:[0], esp
call fcn.00408e20
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x32024]
xor esi, esi
push esi
lea ecx, [esp + 0x32028]
mov eax, dword [eax - 8]
mov dword [esp + 0x32020], 1
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.MSVCRT.dll__access]
push eax
call ebx
or edi, 0xffffffff
add esp, 8
cmp eax, edi
jne 0x401730
mov esi, 1
mov ecx, dword [esp + 0x32028]
push 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x3202c]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebx
add esp, 8
cmp eax, edi
jne 0x401756
or esi, 2
test esi, esi
je 0x401788
lea ecx, [esp + 0x32024]
mov byte [esp + 0x3201c], 0
call fcn.00408cfe
lea ecx, [esp + 0x32028]
mov dword [esp + 0x3201c], edi
call fcn.00408cfe
mov eax, esi
jmp 0x40195b
mov edx, dword [esp + 0x32024]
push 0x40e0c0
lea ecx, [esp + 0x32028]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push eax
call esi
mov ebp, eax
mov eax, dword [esp + 0x32030]
add esp, 8
lea ecx, [esp + 0x32028]
mov eax, dword [eax - 8]
push 0x40e0c0
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call esi
add esp, 8
mov ebx, eax
test ebp, ebp
je 0x401932
test ebx, ebx
je 0x401932
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebp
call esi
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push ebp
call edi
push 2
push 0
push ebx
mov dword [esp + 0x2c], eax
call esi
push ebx
call edi
mov ecx, dword [esp + 0x30]
add esp, 0x20
cmp ecx, eax
jne 0x401900
push 0
push 0
push ebp
call esi
push 0
push 0
push ebx
call esi
mov ecx, 0x6400
xor eax, eax
lea edi, [esp + 0x1902c]
push ebp
rep stosd dword es:[edi], eax
mov ecx, 0x6400
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push 0x19000
lea ecx, [esp + 0x34]
push 1
push ecx
call edi
mov esi, eax
add esp, 0x28
test esi, esi
jle 0x4018b0
push ebx
push 0x19000
lea edx, [esp + 0x1901c]
push 1
push edx
call edi
add esp, 0x10
test eax, eax
jle 0x4018b0
shr esi, 2
xor eax, eax
test esi, esi
jle 0x401898
lea ecx, [esp + 0x14]
mov edx, dword [ecx + 0x19000]
xor edx, dword [ecx]
jne 0x4018f1
inc eax
add ecx, 4
cmp eax, esi
jl 0x401886
push ebp
push 0x19000
lea eax, [esp + 0x1c]
push 1
push eax
call edi
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x401860
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call esi
push ebx
call esi
add esp, 8
lea ecx, [esp + 0x32024]
mov byte [esp + 0x3201c], 0
call fcn.00408cfe
lea ecx, [esp + 0x32028]
mov dword [esp + 0x3201c], 0xffffffff
call fcn.00408cfe
mov eax, 5
jmp 0x40195b
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call esi
push ebx
call esi
add esp, 8
lea ecx, [esp + 0x32024]
mov byte [esp + 0x3201c], 0
call fcn.00408cfe
lea ecx, [esp + 0x32028]
mov dword [esp + 0x3201c], 0xffffffff
call fcn.00408cfe
mov eax, 4
jmp 0x40195b
lea ecx, [esp + 0x32024]
mov byte [esp + 0x3201c], 0
call fcn.00408cfe
lea ecx, [esp + 0x32028]
mov dword [esp + 0x3201c], edi
call fcn.00408cfe
xor eax, eax
mov ecx, dword [esp + 0x32014]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32010
ret