Function at 0x461f80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x530f19
push eax
mov eax, 0x2838
mov dword fs:[0], esp
call fcn.0051c710
mov eax, dword [esp + 0x2848]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x40], esi
call fcn.00439c20
xor ebx, ebx
lea edi, [esi + 0x1e0]
mov eax, 1
mov dword [esi + 0x1d8], ebx
mov word [edi + 4], ax
mov word [edi + 6], ax
mov dword [edi + 8], eax
mov word [esi + 0x222], bx
mov word [esi + 0x220], bx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], eax
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], eax
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov word [esi + 0x2cc], bx
mov word [esi + 0x2ce], bx
mov dword [esi + 0x2d8], ebx
mov dword [esi], 0x537b1c
mov edx, dword [0x659a18]
lea ecx, [esi + 0x1d0]
push edx
push eax
push 4
push ecx
mov dword [esp + 0x2860], ebx
call ebp
mov eax, dword [0x659a18]
lea ecx, [esi + 0x1d4]
push eax
push 1
push 2
push ecx
call ebp
mov edx, dword [0x659a18]
lea eax, [esi + 0x1d6]
push edx
push 1
push 2
push eax
call ebp
mov eax, dword [0x659a18]
push eax
push 1
lea eax, [esi + 0x1d8]
push 4
push eax
call ebp
mov ecx, dword [0x659a18]
add esp, 0x40
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 1
push 4
push edx
call ebp
mov eax, dword [0x659a18]
push eax
push 1
push 0x30
push edi
call ebp
mov edx, dword [0x659a18]
xor ecx, ecx
mov dword [esp + 0x50], ecx
push edx
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x5c], ecx
push 0x10
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ecx
call ebp
mov edx, dword [0x659a18]
xor ecx, ecx
mov dword [esp + 0x50], ecx
push edx
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x5c], ecx
push 0x10
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ecx
call ebp
mov ecx, dword [0x659a18]
add esp, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0043b340
mov edx, dword [0x659a18]
lea edi, [esi + 0x2d0]
push edx
push 1
push 4
push edi
call ebp
mov ecx, dword [0x659a18]
lea eax, [esi + 0x2d4]
push ecx
push 1
push 4
push eax
call ebp
mov eax, dword [edi]
add esp, 0x20
cmp eax, ebx
je 0x462180
push 0x46c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x2850], 1
je 0x462175
mov edx, dword [edi]
mov ecx, eax
push edx
call fcn.00416650
jmp 0x462177
xor eax, eax
mov byte [esp + 0x2850], bl
mov dword [edi], eax
mov edi, dword [esi + 0x2d4]
cmp edi, ebx
je 0x4621b6
push 0x38
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x4621a6
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
jmp 0x4621a8
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x2d4], eax
call fcn.00463780
mov eax, dword [0x659a48]
mov ecx, dword [esi + 0x1d0]
test ecx, eax
jne 0x4621cf
mov eax, dword [esi + 0xc4]
and dword [eax + 0x20], 0xfffffffe
lea eax, [esi + 0x210]
xor ecx, ecx
mov edx, eax
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
cmp dword [esp + edi + 0x1c], ebx
je 0x46225d
mov eax, dword [esp + edi + 0x2c]
dec eax
je 0x462238
dec eax
je 0x462219
dec eax
jne 0x46225d
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x462255
mov ecx, dword [esp + edi + 0x1c]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x462257
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x462255
mov ecx, dword [esp + edi + 0x1c]
push ecx
mov ecx, eax
call fcn.004baf10
jmp 0x462257
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x462255
mov ecx, dword [esp + edi + 0x1c]
push ebx
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x462257
xor eax, eax
mov edx, dword [esp + 0x10]
mov dword [edx], eax
mov ecx, dword [esp + 0x10]
add edi, 4
add ecx, 4
cmp edi, 0x10
mov dword [esp + 0x10], ecx
jl 0x4621ea
xor eax, eax
mov ax, word [esi + 0x1d6]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
mov dword [esi + 0x1dc], eax
mov edx, dword [0x659a18]
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
xor ecx, ecx
mov cx, word [esi + 0x1d6]
push eax
push ecx
lea edx, [esp + 0x60]
push 4
push edx
call ebp
add esp, 0x20
xor edi, edi
cmp word [esi + 0x1d6], bx
jbe 0x462313
mov dword [esp + 0x10], ebx
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1dc]
push eax
add ecx, edx
call fcn.00461c70
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 0xc
add ebp, 4
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [esi + 0x1d6]
cmp edi, ecx
jl 0x4622e2
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0045ece0
movsx eax, word [eax + 2]
movsx edx, word [esi + 0x16]
movsx edi, word [esi + 0x12]
lea ecx, [eax + eax]
sub edx, edi
movsx edi, word [esi + 0x10]
sub edx, ecx
inc edx
push edx
movsx edx, word [esi + 0x14]
sub edx, edi
sub edx, ecx
movsx ecx, word [esi + 0x12]
inc edx
add ecx, eax
push edx
push ecx
movsx edx, word [esi + 0x10]
add edx, eax
lea ecx, [esp + 0x1c]
push edx
call fcn.004b4a60
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
movsx eax, word [esi + 0x16]
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x14]
sub eax, ecx
lea ecx, [esp + 0x40]
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
inc edx
push edx
push ebx
push ebx
call fcn.004b4a60
mov ecx, dword [eax]
lea edi, [esi + 0x244]
mov dword [esi + 0x34], ecx
mov ecx, 0x20
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esi + 0x38], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2848]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2844
ret 4