Function at 0x431040
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545c11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00429c10
lea ebp, [esi + 0x258]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.004bb6f0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x274], edi
mov dword [esi], 0x54b508
mov edx, dword [0x67a8cc]
push edi
push ecx
push edx
mov byte [esp + 0x30], 1
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
lea eax, [esi + 0x24c]
push 1
push 4
push eax
call edi
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x30]
push edx
push 1
push 8
push eax
call edi
mov ecx, dword [0x67a8cc]
lea ebx, [esi + 0x254]
push ecx
push 1
push 4
push ebx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x270]
push edx
push 1
push 2
push eax
call edi
mov eax, dword [0x67a8cc]
add esp, 0x4c
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 1
push 4
push ecx
call edi
push 0x2fc
call fcn.004784b0
add esp, 0x14
test eax, eax
je 0x431132
mov edx, dword [esp + 0x18]
mov ecx, eax
push edx
call fcn.0046a520
jmp 0x431134
xor eax, eax
mov dword [esi + 0x250], eax
mov eax, dword [esp + 0x14]
add eax, 0x2a
push 1
push eax
mov ecx, esi
call fcn.0042b280
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
xor ecx, ecx
mov cx, word [esi + 0x270]
mov dword [esi + 0x1e8], ecx
mov edx, dword [0x67a8cc]
push edx
call edi
add esp, 4
mov ecx, esi
push eax
call fcn.0042aa50
mov eax, dword [0x67a8cc]
push eax
call edi
add esp, 4
mov ecx, esi
push eax
call fcn.0042ab00
mov ecx, dword [0x67a8cc]
push ecx
call edi
add esp, 4
mov ecx, esi
push eax
call fcn.0042add0
mov edx, dword [0x67a8e4]
mov eax, dword [esi + 0x24c]
test eax, edx
je 0x4311d5
push 0x2a4
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4311cd
mov ecx, dword [esp + 0x30]
push esi
push 0
push ecx
mov ecx, eax
call fcn.00443a40
jmp 0x4311cf
xor eax, eax
mov dword [esi + 0x274], eax
cmp dword [ebx], 0
je 0x4312e0
push 0x20
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x24], 2
je 0x431201
mov edx, dword [ebx]
mov ecx, eax
push edx
call fcn.00430ec0
jmp 0x431203
xor eax, eax
mov dword [ebx], eax
mov dword [0x69437c], ebp
mov eax, dword [ebx]
mov byte [esp + 0x24], 1
mov ecx, dword [eax + 4]
mov dword [0x694364], ecx
cmp word [0x694364], 0
mov edx, dword [eax + 8]
mov dword [0x694368], edx
jne 0x431237
mov word [0x694366], 0
mov eax, dword [ebx]
movsx ecx, word [eax + 6]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
mov al, byte [esi + 0x1f8]
sar edi, 1
cmp al, 1
je 0x431254
test al, al
jne 0x431296
mov eax, dword [0x67a8d8]
cmp eax, 0x18
jl 0x431263
mov eax, 0x18
movsx edx, word [esi + 0x16]
push 0
push eax
movsx eax, word [esi + 0x12]
sub edx, eax
inc edx
push edx
push ecx
mov ecx, ebp
call fcn.004bb810
mov ecx, ebp
call fcn.004bc200
mov ax, word [esi + 0x16]
sub ax, word [esi + 0x12]
movsx ecx, di
movsx edx, ax
push edx
push ecx
push 0
push ecx
jmp 0x4312d6
mov eax, dword [0x67a8d8]
cmp eax, 0x18
jl 0x4312a5
mov eax, 0x18
push 0
push eax
movsx eax, word [esi + 0x14]
push ecx
movsx ecx, word [esi + 0x10]
sub eax, ecx
mov ecx, ebp
inc eax
push eax
call fcn.004bb810
mov ecx, ebp
call fcn.004bc200
mov ax, word [esi + 0x14]
sub ax, word [esi + 0x10]
movsx ecx, di
movsx edx, ax
push ecx
push edx
push ecx
push 0
mov ecx, 0x694360
call fcn.0049fff0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8