Function at 0x416690
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5453dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
mov eax, dword [esp + 0x460]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
push edi
push 0
push eax
push ecx
call ebp
mov edx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
lea eax, [esi + 0x14]
push 1
push 0x10
push eax
call edi
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [0x67a8cc]
push 1
push 0x10
push ecx
mov dword [esp + 0x50], eax
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x24]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x28]
push ecx
push 1
push 2
push eax
call edi
mov edx, dword [0x67a8cc]
add esp, 0x4c
lea ebx, [esi + 0x2a]
push edx
push 1
push 2
push ebx
call edi
xor eax, eax
mov ax, word [ebx]
lea ebx, [esi + 0x2c]
mov dword [esi + 0x80], eax
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 2
push ebx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x2e]
push edx
push 1
push 2
push eax
call edi
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x30]
push ecx
push 1
push 4
push eax
call edi
mov eax, dword [0x67a7f0]
add esp, 0x40
cmp eax, 0x10
mov dword [esp + 0x10], 0
jl 0x41679c
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x10]
push edx
push 1
push 4
push eax
call edi
add esp, 0x10
mov ecx, dword [0x67a7f0]
xor eax, eax
cmp ecx, 0x18
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jl 0x416976
cmp dword [esp + 0x478], eax
jne 0x416976
test byte [ebx + 1], 0xc0
je 0x416802
push 0x24
call fcn.004784b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4167fb
mov ecx, dword [0x67a8cc]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebx
push eax
call fcn.00495d60
mov dword [esi + 0xc], eax
jmp 0x416812
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x416812
mov edx, dword [0x67a8cc]
push 1
push 0x10
push edx
call ebp
add esp, 0xc
mov eax, dword [0x67a8cc]
lea ebx, [esi + 0x50]
push eax
push 1
push 4
push ebx
call edi
mov ecx, dword [0x67a8cc]
mov edx, dword [ebx]
push ecx
push edx
lea eax, [esp + 0x78]
push 4
push eax
call edi
mov ebx, dword [ebx]
lea eax, [ebx*8]
sub eax, ebx
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 4]
push edx
call fcn.004784e0
add esp, 0x24
test eax, eax
je 0x416879
push 0x416d80
mov dword [eax], ebx
push 0x416d50
add eax, 4
push ebx
push 0x54
push eax
mov dword [esp + 0x28], eax
call fcn.0053230f
mov eax, dword [esp + 0x14]
jmp 0x41687b
xor eax, eax
mov dword [esi + 0x54], eax
mov eax, dword [0x67a8cc]
push eax
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call edi
mov eax, dword [0x67a7f0]
add esp, 0x10
cmp eax, 0x1a
jl 0x416940
mov edx, dword [0x67a8cc]
lea ebx, [esi + 0x5c]
push edx
push 1
push 4
push ebx
call edi
mov al, byte [ebx]
add esp, 0x10
test al, 1
je 0x4168ef
push 0x24
call fcn.004784b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4168e8
mov eax, dword [0x67a8cc]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebx
push eax
call fcn.00495d60
mov dword [esi + 0x60], eax
jmp 0x4168ff
xor eax, eax
mov dword [esi + 0x60], eax
jmp 0x4168ff
mov ecx, dword [0x67a8cc]
push 1
push 0x10
push ecx
call ebp
add esp, 0xc
cmp dword [0x67a7f0], 0x1c
jl 0x416940
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x1c]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x28]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x70]
push eax
push 1
push 0x10
push ecx
call edi
add esp, 0x30
mov eax, dword [esi + 0x50]
xor ebp, ebp
test eax, eax
jbe 0x4169e6
xor ebx, ebx
lea edi, [esp + 0x60]
mov edx, dword [edi]
mov ecx, dword [esi + 0x54]
lea eax, [esi + 0x14]
add ecx, ebx
push eax
push 1
push edx
call fcn.00428320
mov eax, dword [esi + 0x50]
inc ebp
add edi, 4
add ebx, 0x54
cmp ebp, eax
jb 0x416953
jmp 0x4169e6
movsx edi, word [esi + 0x20]
mov dword [esi + 0x50], edi
lea eax, [edi*8]
sub eax, edi
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004784e0
add esp, 4
test eax, eax
je 0x4169b7
push 0x416d80
push 0x416d50
lea ebx, [eax + 4]
push edi
push 0x54
push ebx
mov dword [eax], edi
call fcn.0053230f
jmp 0x4169b9
xor ebx, ebx
mov ecx, dword [esi + 0x50]
xor eax, eax
test ecx, ecx
mov dword [esi + 0x54], ebx
jbe 0x4169e6
xor ecx, ecx
mov dl, byte [esi + 0x18]
mov edi, dword [esi + 0x54]
sub dl, 2
neg dl
sbb dl, dl
add ecx, 0x54
and edx, 2
inc eax
mov byte [edi + ecx - 0x53], dl
mov edx, dword [esi + 0x50]
cmp eax, edx
jb 0x4169c7
mov eax, dword [esp + 0x20]
xor ebp, ebp
cmp eax, ebp
je 0x416a26
cmp dword [esp + 0x474], ebp
jne 0x416a26
push 0x2a4
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416a1a
mov ecx, dword [esp + 0x20]
push ebp
push esi
push ecx
mov ecx, eax
call fcn.00443a40
jmp 0x416a1c
xor eax, eax
mov dword [esi + 0x58], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x1c]
or edi, 0xffffffff
cmp eax, ebp
je 0x416a69
push 0x150
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x468], ebp
je 0x416a5d
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push ecx
mov ecx, eax
call fcn.00414640
jmp 0x416a5f
xor eax, eax
mov dword [esp + 0x468], edi
mov dword [esi + 0x64], eax
cmp dword [esp + 0x18], ebp
je 0x416aa9
push 0x470
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x468], 1
je 0x416a9d
mov edx, dword [esp + 0x18]
mov ecx, eax
push edx
call fcn.00415890
jmp 0x416a9f
xor eax, eax
mov dword [esp + 0x468], edi
mov dword [esi + 0x68], eax
mov eax, dword [0x67a8e8]
mov ecx, dword [esi + 0x5c]
test eax, ecx
je 0x416ad8
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416ad3
lea ecx, [esp + 0x50]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x416ad5
xor eax, eax
mov dword [esi + 0x6c], eax
mov dl, byte [esi + 0x2c]
shr dl, 2
test dl, 1
je 0x416aef
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040d980
cmp word [esi + 0x2e], bp
jne 0x416afb
mov word [esi + 0x2e], 1
mov eax, dword [esp + 0x474]
mov ecx, 1
cmp eax, ebp
mov ebx, ecx
je 0x416b20
test byte [esi + 0x2c], cl
jne 0x416b20
xor edi, edi
xor ebx, ebx
mov di, word [esi + 0x28]
mov bx, word [esi + 0x2a]
jmp 0x416b2f
xor edi, edi
xor edx, edx
mov di, word [esi + 0x2a]
mov dx, word [esi + 0x28]
imul edi, edx
mov ax, word [esi + 0x2c]
shr eax, 0xd
test al, 1
jne 0x416b45
mov eax, dword [esi + 0x24]
lea edx, [eax + eax*4]
shl edx, 1
mov dword [esi + 0x24], edx
cmp dword [esi + 0x24], ecx
jae 0x416b4d
mov dword [esi + 0x24], ecx
mov eax, dword [esi + 0x24]
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00417930
mov ax, word [esi + 0x2c]
mov ecx, eax
shr ecx, 0xc
test cl, 1
je 0x416b6d
test ah, 7
jne 0x416b71
mov dword [esp + 0x10], ebp
mov edx, dword [str..trd]
mov ecx, dword [esp + 0x470]
shr eax, 8
mov dword [esp + 0x28], edx
mov edx, dword [0x67a7f8]
mov dword [esp + 0x2c], ecx
and eax, 7
lea ecx, [esi + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
call fcn.004c9d30
mov cl, byte [esi + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x44], ebp
shr cl, 6
test cl, 1
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], bx
mov word [esp + 0x4e], bp
je 0x416c53
mov edi, dword [esi + 0x5c]
shr edi, 6
and edi, 7
cmp edi, 1
jl 0x416c11
push 0x4c
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416c4a
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x10]
push edi
push edx
mov edx, dword [esi + 0x30]
push ecx
shl edx, 1
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, eax
call fcn.0049ef40
jmp 0x416c4c
cmp edi, ebp
jne 0x416c4f
push 0x48
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416c4a
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x30]
push edx
lea edx, [ecx + ecx + 0x400]
lea ecx, [esp + 0x40]
push edx
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, eax
call fcn.0049ed10
jmp 0x416c4c
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esp + 0x10], ebp
mov ax, word [esi + 0x2c]
mov ecx, eax
shr ecx, 0xb
test cl, 1
je 0x416c95
test ah, 7
je 0x416c95
push 0x50
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416c90
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x30]
push edx
push ecx
mov ecx, eax
call fcn.0049f400
jmp 0x416c92
xor eax, eax
mov dword [esi + 0x48], eax
cmp dword [esi + 0x44], ebp
jne 0x416cce
cmp dword [esi + 0x48], ebp
jne 0x416cce
push 0x48
call fcn.004784b0
add esp, 4
cmp eax, ebp
je 0x416cc9
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x30]
push edx
push ecx
mov ecx, eax
call fcn.0049f150
jmp 0x416ccb
xor eax, eax
mov dword [esi + 0x44], eax
mov ebx, 0x67a910
lea edi, [esi + 0x44]
sub ebx, esi
mov ebp, 2
mov ecx, dword [edi]
test ecx, ecx
je 0x416cf7
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
jne 0x416cf7
mov eax, dword [ebx + edi]
mov ecx, dword [esi + 0x5c]
or ecx, eax
mov dword [esi + 0x5c], ecx
add edi, 4
dec ebp
jne 0x416cdd
mov ecx, dword [0x67a8f4]
mov eax, dword [esi + 0x5c]
test ecx, eax
je 0x416d23
lea edi, [esi + 0x44]
mov ebx, 2
mov ecx, dword [edi]
test ecx, ecx
je 0x416d1d
call fcn.0049ea40
add edi, 4
dec ebx
jne 0x416d12
mov ecx, dword [esp + 0x460]
xor edx, edx
mov dl, byte [esi + 0x16]
pop edi
mov dword [esi + 0x78], edx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x45c
ret 0xc