Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40531b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [esp + 0x228]
push ebx
push ebp
push esi
push 0x4088dc
mov dword [esp + 0x1c], ecx
push eax
call dword [sym.imp.MSVCRT.DLL_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40316e
push 0
push 0x5d1
push ebp
call dword [sym.imp.MSVCRT.DLL_fseek]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0x4088d8
push ebp
call dword [sym.imp.MSVCRT.DLL_fscanf]
mov eax, dword [esp + 0x24]
inc eax
push eax
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x28]
mov esi, eax
push edx
call sub.MFC42.DLL_operatornew
add esp, 0x20
mov ebx, eax
test esi, esi
je 0x403164
test ebx, ebx
je 0x403164
mov ecx, dword [esp + 0xc]
push edi
mov edx, ecx
xor eax, eax
mov edi, esi
push 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.DLL_fseek]
mov eax, dword [esp + 0x1c]
push ebp
push 1
push eax
push esi
call dword [sym.imp.MSVCRT.DLL_fread]
push ebp
call dword [sym.imp.MSVCRT.DLL_fclose]
add esp, 0x20
lea ecx, [esp + 0x18]
call fcn.00401000
mov cx, word [0x4087dc]
mov dl, byte [0x4087de]
mov word [esp + 0x14], cx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
mov byte [esp + 0x16], dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x238], ebp
push eax
push ecx
push esi
push ebx
lea ecx, [esp + 0x30]
call fcn.00401040
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40314d
cmp bp, 0x104
jae 0x40314d
mov edx, esi
and edx, 0xffff
mov al, byte [edx + ebx]
cmp al, 0xd
jne 0x403121
inc esi
inc ebp
and ebp, 0xffff
mov byte [esp + ebp + 0x124], 0
mov al, byte [esp + 0x124]
xor ebp, ebp
cmp al, 0x48
je 0x40309f
cmp al, 0x68
jne 0x40310f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push 0x4087e8
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push 0x104
push eax
mov ecx, edi
call fcn.00402d10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push edx
mov ecx, edi
call fcn.00402a20
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00402c20
test eax, eax
je 0x403131
push 5
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, edi
call fcn.00402d60
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
jmp 0x403131
mov edx, ebp
and edx, 0xffff
inc ebp
mov byte [esp + edx + 0x124], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
dec ecx
and eax, 0xffff
cmp eax, ecx
jb 0x403060
lea ecx, [esp + 0x18]
mov dword [esp + 0x230], 0xffffffff
call fcn.00401030
pop edi
jmp 0x40316e
push ebp
call dword [sym.imp.MSVCRT.DLL_fclose]
add esp, 4
mov ecx, dword [esp + 0x224]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4