Function at 0x462a50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x546c5a
push eax
mov eax, 0x2840
mov dword fs:[0], esp
call fcn.005322e0
mov eax, dword [esp + 0x2850]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x50], esi
call fcn.0043cc70
xor ebx, ebx
mov edx, 1
mov dword [esi + 0x1d8], ebx
mov word [esi + 0x1e4], dx
mov word [esi + 0x1e6], dx
or eax, 0xffffffff
mov dword [esi + 0x1e8], edx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov word [esi + 0x236], bx
mov word [esi + 0x234], bx
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], edx
mov dword [esi + 0x248], edx
mov dword [esi + 0x24c], edx
mov dword [esi + 0x250], edx
lea eax, [esi + 0x2f0]
mov dword [esi + 0x254], ebx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e8], ebx
xor ecx, ecx
mov word [esi + 0x2ec], bx
mov word [esi + 0x2ee], bx
mov dword [eax], ecx
mov dword [esp + 0x2858], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
xor eax, eax
mov dword [esi + 0x304], ebx
mov dword [esi + 0x318], eax
lea edi, [esi + 0x328]
mov dword [esi + 0x31c], eax
mov ecx, 6
mov dword [esi + 0x320], eax
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x324], eax
mov byte [esp + 0x2858], dl
rep stosd dword es:[edi], eax
mov dword [esi], 0x54ee94
mov ecx, dword [0x67a8cc]
push ecx
lea eax, [esi + 0x1d0]
push edx
push 4
push eax
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1d4]
push edx
push 1
push 2
push eax
call ebp
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x1d6]
push ecx
push 1
push 2
push eax
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1d8]
push edx
push 1
push 4
push eax
call ebp
mov eax, dword [0x67a8cc]
add esp, 0x40
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 1
push 4
push ecx
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1e0]
push edx
push 1
push 0x30
push eax
call ebp
mov ecx, dword [0x67a8cc]
xor eax, eax
mov dword [esp + 0x50], eax
push ecx
push 1
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], eax
push 0x10
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], eax
call ebp
mov ecx, dword [0x67a8cc]
xor eax, eax
mov dword [esp + 0x50], eax
push ecx
push 1
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], eax
push 0x10
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x40
lea eax, [esi + 0x214]
push 0x10
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
add esp, 4
push eax
call fcn.0047a710
mov ecx, dword [0x67a8cc]
add esp, 0xc
lea eax, [esi + 0x224]
push 0x10
push eax
push ecx
call edi
add esp, 4
push eax
call fcn.0047a710
mov edx, dword [0x67a8cc]
push edx
call edi
add esp, 0x10
mov ecx, esi
push eax
call fcn.0043ee20
mov eax, dword [0x67a8cc]
lea edi, [esi + 0x308]
push eax
push 1
push 4
push edi
call ebp
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x30c]
push ecx
push 1
push 4
push eax
call ebp
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x310]
push edx
push 1
push 4
push eax
call ebp
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x314]
push ecx
push 1
push 4
push eax
call ebp
mov edx, dword [0x67a8ec]
mov eax, dword [esi + 0x1d0]
add esp, 0x40
test edx, eax
je 0x462d54
cmp dword [edi], ebx
je 0x462d54
push 0x470
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x2858], 2
je 0x462d46
mov ecx, dword [edi]
push ecx
mov ecx, eax
call fcn.00415890
mov byte [esp + 0x2858], 1
mov dword [edi], eax
jmp 0x462d56
xor eax, eax
mov byte [esp + 0x2858], 1
mov dword [edi], eax
jmp 0x462d56
mov dword [edi], ebx
mov edx, dword [0x67a8f0]
mov eax, dword [esi + 0x1d0]
test edx, eax
je 0x462da7
mov edi, dword [esi + 0x30c]
cmp edi, ebx
je 0x462da7
push 0x4c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x462d95
mov ecx, eax
call fcn.0045d480
push edi
mov ecx, eax
mov dword [esi + 0x30c], eax
call fcn.0045d4d0
jmp 0x462dad
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x30c], eax
call fcn.0045d4d0
jmp 0x462dad
mov dword [esi + 0x30c], ebx
mov eax, dword [0x67a8f4]
mov ecx, dword [esi + 0x1d0]
test eax, ecx
je 0x462e36
mov edi, dword [esi + 0x310]
cmp edi, ebx
je 0x462df0
push 0x12c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x462de0
mov ecx, eax
call fcn.004625a0
jmp 0x462de2
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x310], eax
call fcn.00462600
mov edi, dword [esi + 0x314]
cmp edi, ebx
je 0x462e42
push 0x38
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x462e24
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
push edi
mov ecx, eax
mov dword [esi + 0x314], eax
call fcn.00468680
jmp 0x462e42
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x314], eax
call fcn.00468680
jmp 0x462e42
mov dword [esi + 0x310], ebx
mov dword [esi + 0x314], ebx
mov ecx, dword [0x67a8f8]
mov eax, dword [esi + 0x1d0]
test ecx, eax
jne 0x462e5c
mov eax, dword [esi + 0xc4]
and dword [eax + 0x20], 0xfffffffe
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x210], ebx
cmp eax, ebx
je 0x462ed4
mov eax, dword [esp + 0x2c]
dec eax
je 0x462eaf
dec eax
je 0x462e93
dec eax
jne 0x462ed4
push 0x1c
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x462ecc
mov edx, dword [esp + 0x1c]
mov ecx, eax
push edx
call fcn.004cf860
jmp 0x462ece
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x462ecc
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004cfd90
jmp 0x462ece
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x462ecc
mov edx, dword [esp + 0x1c]
push ebx
push edx
mov ecx, eax
call fcn.004cfb10
jmp 0x462ece
xor eax, eax
mov dword [esi + 0x210], eax
xor eax, eax
mov ax, word [esi + 0x1d6]
shl eax, 4
add eax, 4
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x462f01
xor ecx, ecx
add eax, 4
mov cx, word [esi + 0x1d6]
mov dword [eax - 4], ecx
jmp 0x462f03
xor eax, eax
mov edx, dword [esp + 0x18]
mov dword [esi + 0x1dc], eax
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x67a8cc]
push ebx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
xor edx, edx
mov dx, word [esi + 0x1d6]
push ecx
push edx
lea eax, [esp + 0x64]
push 4
push eax
call ebp
add esp, 0x1c
xor ebp, ebp
cmp word [esi + 0x1d6], bx
jbe 0x462f8c
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x50]
mov ecx, dword [edi]
mov edx, dword [esi + 0x1dc]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, edx
call fcn.00462430
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0x1d6]
inc ebp
add edi, 4
add ecx, 0x10
cmp ebp, edx
mov dword [esp + 0x10], ecx
jl 0x462f5c
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00467690
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.004c9320
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 + 0x3c]
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
inc edx
push edx
push ebx
push ebx
call fcn.004c9320
mov ecx, dword [eax]
lea edi, [esi + 0x25c]
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
lea ecx, [esi + 0x2e0]
mov dword [esi + 0x2e0], eax
mov dword [ecx + 4], eax
mov ecx, esi
call fcn.00465df0
mov ecx, esi
call fcn.00465e70
lea edx, [eax + eax]
mov dword [esi + 0x2f8], eax
push edx
call fcn.00478e60
add esp, 4
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x300], ebx
push ebx
call fcn.004b33f0
mov ecx, eax
call fcn.004b2b00
cdq
sub eax, edx
xor ebp, ebp
mov edi, eax
mov eax, dword [esi + 0x2f8]
sar edi, 1
cmp eax, ebx
jle 0x4630c1
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.004b33f0
mov ecx, eax
call fcn.004b2db0
test eax, eax
je 0x4630ac
mov ecx, dword [esi + 0x300]
mov edx, dword [esi + 0x2fc]
mov word [edx + ecx*2], bp
mov eax, dword [esi + 0x300]
inc eax
mov dword [esi + 0x300], eax
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x2f8]
add edx, edi
inc ebp
cmp ebp, eax
mov dword [esp + 0x44], edx
jl 0x463075
mov eax, dword [0x67a8e4]
mov ecx, dword [esi + 0x2f0]
test ecx, eax
je 0x46310f
mov ecx, dword [esi + 0x300]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x46310f
mov eax, dword [esi + 0x2fc]
sub ecx, ebx
mov di, word [eax + ecx*2 - 2]
mov dx, word [eax + ebx*2]
lea ecx, [eax + ecx*2 - 2]
mov word [eax + ebx*2], di
inc ebx
mov word [ecx], dx
mov ecx, dword [esi + 0x300]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jl 0x4630e1
mov ecx, dword [esp + 0x2850]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284c
ret 4