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

Disassembly:
push 0xffffffffffffffff
push 0x546e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
mov eax, dword [esp + 0x4c8]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x78], ebp
call fcn.0043cc70
xor ebx, ebx
lea ecx, [ebp + 0x1d8]
mov dword [esp + 0x4d0], ebx
call fcn.00468860
lea edi, [ebp + 0x240]
mov esi, 1
lea ecx, [ebp + 0x2b0]
mov byte [esp + 0x4d0], 1
mov word [edi + 4], si
mov word [edi + 6], si
mov dword [edi + 8], esi
call fcn.0043ca20
mov dword [ebp + 0x2cc], ebx
mov dword [ebp + 0x2d0], ebx
mov dword [ebp + 0x2d4], ebx
mov dword [ebp + 0x2d8], esi
mov dword [ebp + 0x2dc], esi
mov dword [ebp + 0x2e0], esi
mov dword [ebp + 0x2e4], esi
mov word [ebp + 0x2ea], bx
mov word [ebp + 0x2e8], bx
mov eax, dword [ebp + 0xc4]
mov dword [ebp + 0x2ec], ebx
mov dword [ebp + 0x2f0], ebx
mov dword [ebp + 0x2f4], 0xffffffff
mov dword [ebp + 0x2f8], ebx
mov dword [ebp], 0x54f074
mov ecx, dword [eax + 0x20]
and ecx, 0xfffffffe
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x67a8cc]
push ecx
push esi
lea edx, [esp + 0x80]
push 0x10
push edx
mov byte [esp + 0x4e0], 2
call ebx
mov ecx, dword [0x67a8cc]
lea eax, [ebp + 0x1d0]
push ecx
push esi
push 2
push eax
call ebx
mov edx, dword [0x67a8cc]
lea eax, [ebp + 0x1d4]
push edx
push esi
push 4
push eax
call ebx
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x48]
push eax
push esi
push 4
push ecx
mov dword [esp + 0x58], 0
call ebx
mov edx, dword [0x67a8cc]
add esp, 0x40
push edx
push esi
push 0x30
push edi
call ebx
lea eax, [ebp + 0x270]
mov ecx, dword [0x67a8cc]
push ecx
push esi
push 0x40
push eax
call ebx
mov edx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push edx
call edi
add esp, 0x24
mov ecx, ebp
push eax
call fcn.0043ebc0
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x14]
push eax
push esi
push 4
push ecx
mov dword [esp + 0x24], 0
call ebx
mov edx, dword [0x67a8cc]
push edx
call edi
add esp, 0x14
mov ecx, ebp
push eax
call fcn.0043ede0
mov eax, dword [0x67a8cc]
push eax
push esi
lea eax, [ebp + 0x2cc]
push 4
push eax
call ebx
mov eax, dword [0x67a7f0]
add esp, 0x10
cmp eax, 0x1d
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
jl 0x46a76a
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x88], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x88]
push ecx
push esi
push 0x40
push edx
call ebx
mov ecx, 0x10
lea esi, [esp + 0x98]
lea edi, [esp + 0x44]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, 1
mov eax, dword [ebp + 0x2cc]
test eax, eax
je 0x46a7b1
push 0x470
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x4d0], 3
je 0x46a7a1
mov ecx, dword [ebp + 0x2cc]
push ecx
mov ecx, eax
call fcn.00415890
jmp 0x46a7a3
xor eax, eax
mov byte [esp + 0x4d0], 2
mov dword [ebp + 0x2cc], eax
cmp word [ebp + 0x1d0], 0
jbe 0x46a8b7
mov edx, dword [ebp + 0x1d4]
test edx, edx
je 0x46a8b7
xor eax, eax
mov ecx, 0xff
push eax
push edx
mov edx, dword [0x67a8cc]
lea edi, [esp + 0xd4]
mov dword [esp + 0xd0], 0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
xor ecx, ecx
mov cx, word [ebp + 0x1d0]
push eax
shl ecx, 2
push esi
lea edx, [esp + 0xdc]
push ecx
push edx
call ebx
xor edi, edi
mov di, word [ebp + 0x1d0]
lea eax, [edi*8]
sub eax, edi
lea ecx, [eax*8 + 4]
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 0x20
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x4d0], 4
je 0x46a861
push 0x46a4c0
push 0x46aa20
lea ebx, [eax + 4]
push edi
push 0x38
push ebx
mov dword [eax], edi
call fcn.0053230f
jmp 0x46a863
xor ebx, ebx
xor edi, edi
mov byte [esp + 0x4d0], 2
cmp word [ebp + 0x1d0], di
mov dword [ebp + 0x1d4], ebx
jbe 0x46a8b7
mov dword [esp + 0x10], edi
lea ebx, [esp + 0xc8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x1d4]
add ecx, edx
call fcn.004694c0
mov edx, dword [esp + 0x10]
xor eax, eax
mov ax, word [ebp + 0x1d0]
inc edi
add ebx, 4
add edx, 0x38
cmp edi, eax
mov dword [esp + 0x10], edx
jl 0x46a887
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46a8cc
push ebp
push eax
lea ecx, [ebp + 0x1d8]
call fcn.00468960
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46a8e0
push eax
lea ecx, [ebp + 0x2b0]
call fcn.0043ca50
lea edi, [esp + 0x34]
lea ebx, [ebp + 0x270]
mov dword [esp + 0x10], 0x10
cmp dword [ebx], 0
je 0x46a956
mov eax, dword [edi]
dec eax
je 0x46a936
dec eax
je 0x46a91c
dec eax
jne 0x46a956
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x46a952
mov ecx, dword [ebx]
push ecx
mov ecx, eax
call fcn.004cf860
jmp 0x46a954
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x46a952
mov edx, dword [ebx]
mov ecx, eax
push edx
call fcn.004cfd90
jmp 0x46a954
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x46a952
mov ecx, dword [ebx]
push 0
push ecx
mov ecx, eax
call fcn.004cfb10
jmp 0x46a954
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
add edi, 4
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x46a8f2
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x1e], eax
and dh, 0xfd
mov dword [esp + 0x22], eax
or dh, 1
mov dword [esp + 0x26], eax
mov ecx, ebp
mov dword [esp + 0x2a], eax
mov dword [ebp + 8], edx
mov dword [esp + 0x2e], eax
mov dword [ebp + 0xb8], esi
mov word [esp + 0x1c], 0
mov word [esp + 0x32], ax
call fcn.0046b6c0
lea ecx, [esp + 0x1c]
push eax
lea ebx, [ebp + 0x1d8]
push ecx
mov ecx, ebx
call fcn.00469120
mov ebx, dword [ebx]
mov dword [ebp + 0x238], 0
test bl, 3
jne 0x46a9f5
test bh, 0xc
jne 0x46a9f5
push esi
push 0x243a
call fcn.00493e00
mov ecx, eax
call fcn.00490450
test eax, eax
je 0x46a9f5
mov edx, dword [0x67a908]
mov eax, dword [ebp + 0x2f8]
or eax, edx
mov dword [ebp + 0x2f8], eax
mov ecx, dword [esp + 0x4c8]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c4
ret 4