Function at 0x465320
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530ff9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
mov eax, dword [esp + 0x4cc]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x7c], ebp
call fcn.00439c20
xor ebx, ebx
lea ecx, [ebp + 0x1d8]
mov dword [esp + 0x4d4], ebx
call fcn.00463990
lea edi, [ebp + 0x234]
mov esi, 1
lea ecx, [ebp + 0x2a4]
mov byte [esp + 0x4d4], 1
mov word [edi + 4], si
mov word [edi + 6], si
mov dword [edi + 8], esi
call fcn.004399d0
mov dword [ebp + 0x2c0], ebx
mov dword [ebp + 0x2c4], ebx
mov dword [ebp + 0x2c8], ebx
mov dword [ebp + 0x2cc], esi
mov dword [ebp + 0x2d0], esi
mov dword [ebp + 0x2d4], esi
mov dword [ebp + 0x2d8], esi
mov word [ebp + 0x2de], bx
mov word [ebp + 0x2dc], bx
mov eax, dword [ebp + 0xc4]
mov dword [ebp + 0x2e0], ebx
mov dword [ebp + 0x2e4], ebx
mov dword [ebp + 0x2e8], ebx
mov dword [ebp], 0x537c04
mov ecx, dword [eax + 0x20]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
and ecx, 0xfffffffe
lea edx, [esp + 0xbc]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x659a18]
push ecx
push esi
push 0x10
push edx
mov byte [esp + 0x4e4], 2
call ebx
mov ecx, dword [0x659a18]
lea eax, [ebp + 0x1d0]
push ecx
push esi
push 2
push eax
call ebx
mov edx, dword [0x659a18]
lea eax, [ebp + 0x1d4]
push edx
push esi
push 4
push eax
call ebx
mov eax, dword [0x659a18]
lea ecx, [esp + 0x4c]
push eax
push esi
push 4
push ecx
mov dword [esp + 0x5c], 0
call ebx
mov edx, dword [0x659a18]
add esp, 0x40
push edx
push esi
push 0x30
push edi
call ebx
mov ecx, dword [0x659a18]
lea eax, [ebp + 0x264]
push ecx
push esi
push 0x40
push eax
call ebx
mov edx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push edx
call edi
add esp, 0x24
mov ecx, ebp
push eax
call fcn.0043b100
mov eax, dword [0x659a18]
lea ecx, [esp + 0x18]
push eax
push esi
push 4
push ecx
mov dword [esp + 0x28], 0
call ebx
mov edx, dword [0x659a18]
push edx
call edi
add esp, 0x14
mov ecx, ebp
push eax
call fcn.0043b300
mov eax, dword [0x659a18]
push eax
push esi
lea eax, [ebp + 0x2c0]
push 4
push eax
call ebx
mov eax, dword [0x659958]
add esp, 0x10
cmp eax, 0x1d
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
mov dword [esp + 0x74], esi
jl 0x46555a
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x659a18]
lea edx, [esp + 0x7c]
push ecx
push esi
push 0x40
push edx
call ebx
mov ecx, 0x10
lea esi, [esp + 0x8c]
lea edi, [esp + 0x48]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, 1
mov eax, dword [ebp + 0x2c0]
xor edi, edi
cmp eax, edi
je 0x4655a3
push 0x46c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x4d4], 3
je 0x465593
mov ecx, dword [ebp + 0x2c0]
push ecx
mov ecx, eax
call fcn.00416650
jmp 0x465595
xor eax, eax
mov byte [esp + 0x4d4], 2
mov dword [ebp + 0x2c0], eax
cmp word [ebp + 0x1d0], di
jbe 0x4656a6
mov edx, dword [ebp + 0x1d4]
cmp edx, edi
je 0x4656a6
xor eax, eax
mov dword [esp + 0xcc], edi
push eax
push edx
mov edx, dword [0x659a18]
mov ecx, 0xff
lea edi, [esp + 0xd8]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
xor ecx, ecx
mov cx, word [ebp + 0x1d0]
push eax
shl ecx, 2
push esi
lea edx, [esp + 0xe0]
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 + 0x14], eax
test eax, eax
mov byte [esp + 0x4d4], 4
je 0x46564e
push 0x4652c0
push 0x465810
lea ebx, [eax + 4]
push edi
push 0x38
push ebx
mov dword [eax], edi
call fcn.0051c73f
jmp 0x465650
xor ebx, ebx
xor edi, edi
mov byte [esp + 0x4d4], 2
cmp word [ebp + 0x1d0], di
mov dword [ebp + 0x1d4], ebx
jbe 0x4656a4
mov dword [esp + 0x10], edi
lea ebx, [esp + 0xcc]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x1d4]
add ecx, edx
call fcn.004642e0
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 0x465674
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4656bb
push ebp
push eax
lea ecx, [ebp + 0x1d8]
call fcn.00463a50
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4656cf
push eax
lea ecx, [ebp + 0x2a4]
call fcn.00439a00
lea ecx, [esp + 0x38]
lea ebx, [ebp + 0x264]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x10
cmp dword [ebx], edi
je 0x46574e
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
dec eax
je 0x46572f
dec eax
je 0x465712
dec eax
jne 0x46574e
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, edi
je 0x46574a
mov ecx, dword [ebx]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x46574c
push 0x298
call fcn.00470250
add esp, 4
cmp eax, edi
je 0x46574a
mov edx, dword [ebx]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x46574c
push 0x24
call fcn.00470250
add esp, 4
cmp eax, edi
je 0x46574a
mov ecx, dword [ebx]
push edi
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x46574c
xor eax, eax
mov dword [ebx], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 4
add ebx, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x4656e5
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x22], eax
and dh, 0xfd
mov dword [esp + 0x26], eax
or dh, 1
mov dword [esp + 0x2a], eax
mov ecx, ebp
mov dword [esp + 0x2e], eax
mov dword [ebp + 8], edx
mov dword [esp + 0x32], eax
mov dword [ebp + 0xb8], esi
mov word [esp + 0x20], di
mov word [esp + 0x36], ax
call fcn.00466320
lea ecx, [esp + 0x20]
push eax
lea ebx, [ebp + 0x1d8]
push ecx
mov ecx, ebx
call fcn.00463f50
mov ebx, dword [ebx]
mov dword [ebp + 0x22c], edi
test bl, 3
jne 0x4657f3
test bh, 0xc
jne 0x4657f3
push esi
push 0x243a
call fcn.00487160
mov ecx, eax
call fcn.00483920
test eax, eax
je 0x4657f3
mov edx, dword [0x659a58]
mov eax, dword [ebp + 0x2e8]
or eax, edx
mov dword [ebp + 0x2e8], eax
mov ecx, dword [esp + 0x4cc]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c8
ret 4