Function at 0x40fbf0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.0040d980
mov ecx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
lea eax, [esi + 0x14]
push 1
push 1
push eax
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x15]
push edx
push 1
push 1
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x16]
push ecx
push 1
push 2
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x60]
push eax
push 1
push 1
push ecx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x40
lea eax, [esi + 0x19]
push edx
push 1
push 1
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x1a]
push ecx
push 1
push 2
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x1c]
push eax
push 1
push 2
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1e]
push edx
push 1
push 2
push eax
call edi
mov ecx, dword [0x67a8cc]
add esp, 0x40
lea edx, [esi + 0x20]
push ecx
push 1
push 0x10
push edx
call edi
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebp, eax
add esp, 0x14
movsx eax, byte [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x40fcc3
jmp dword [eax*4 + 0x40ff98]
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40fd2c
push 0
push ebp
mov ecx, eax
call fcn.004cfb10
jmp 0x40fd2e
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40fd2c
push ebp
mov ecx, eax
call fcn.004cfd90
jmp 0x40fd2e
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40fd2c
push ebp
mov ecx, eax
call fcn.004cf860
jmp 0x40fd2e
push 0x20
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40fd2c
push ebp
mov ecx, eax
call fcn.004d0610
jmp 0x40fd2e
xor eax, eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x18], 0
mov eax, dword [0x67a7f0]
cmp eax, 0x18
jl 0x40fd74
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x34]
push ecx
push 1
push 0x10
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x48]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x44]
push edx
push 1
push 4
push eax
call edi
add esp, 0x30
cmp dword [0x67a7f0], 0x19
jl 0x40ff2c
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x4c]
push ecx
push 1
push 0x20
push edx
call edi
mov eax, dword [0x67a8cc]
lea ebx, [esi + 0x6c]
push eax
push 1
push 0x10
push ebx
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x7c]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x80]
push eax
push 1
push 0x20
push ecx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x40
lea eax, [esi + 0xa0]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x20]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x3c]
push eax
push 1
push 0x10
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0xac]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
add esp, 0x40
lea edx, [esp + 0x14]
xor eax, eax
push ecx
push 1
push 8
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0xb8]
push eax
push 1
push 0x30
push ecx
call edi
mov edx, dword [0x67a8cc]
lea ebp, [esi + 0xe8]
push edx
push 1
push 4
push ebp
call edi
movsx eax, byte [esi + 0x14]
mov ecx, dword [0x67a8fc]
add esp, 0x30
test eax, ecx
je 0x40fe75
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa4], ecx
mov eax, dword [esi + 0xa4]
mov ecx, dword [0x67a920]
test eax, ecx
jne 0x40fe8c
mov dword [ebp], 0
test dword [0x67a8e4], eax
je 0x40feba
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40feb2
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, eax
call fcn.00495db0
jmp 0x40feb4
xor eax, eax
mov dword [esi + 0xa8], eax
movsx eax, byte [esi + 0x14]
test dword [0x67a8f4], eax
je 0x40fee8
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40fee0
push 1
push ebx
mov ecx, eax
call fcn.00495db0
jmp 0x40fee2
xor eax, eax
mov dword [esi + 0xec], eax
mov ecx, dword [0x67a910]
mov eax, dword [esi + 0xa4]
test ecx, eax
je 0x40ff2c
lea edi, [esp + 0x14]
lea ebp, [esi + 0xb0]
mov ebx, 2
cmp dword [edi], 0
je 0x40ff23
push 0x10
call sub.MFC42u.DLL_operatornew
mov edx, dword [edi]
add esp, 4
mov ecx, eax
mov dword [ebp], eax
push edx
call fcn.00485ac0
add ebp, 4
add edi, 4
dec ebx
jne 0x40ff07
movsx ecx, byte [esi + 0x14]
lea eax, [esi + 0x34]
mov dword [esi + 0xfc], eax
mov eax, dword [0x67a8f0]
test ecx, eax
je 0x40ff56
mov edx, dword [0x67a8ec]
mov eax, dword [esi + 0xf8]
or eax, edx
mov dword [esi + 0xf8], eax
add esi, 0x4c
mov ecx, esi
call fcn.0040d890
mov esi, dword [esi]
mov eax, esi
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
and esi, 0x8000001f
lea eax, [eax*4 + 0x5ddebc]
jns 0x40ff81
dec esi
or esi, 0xffffffe0
inc esi
mov ecx, dword [esi*4 + 0x67a8e4]
mov edx, dword [eax]
pop edi
or edx, ecx
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x1c
ret 4