Function at 0x45e080
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x530e2a
push eax
mov eax, 0x2840
mov dword fs:[0], esp
call fcn.0051c710
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.00439c20
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], 0x537a34
mov ecx, dword [0x659a18]
push ecx
lea eax, [esi + 0x1d0]
push edx
push 4
push eax
call ebp
mov edx, dword [0x659a18]
lea eax, [esi + 0x1d4]
push edx
push 1
push 2
push eax
call ebp
mov ecx, dword [0x659a18]
lea eax, [esi + 0x1d6]
push ecx
push 1
push 2
push eax
call ebp
mov edx, dword [0x659a18]
lea eax, [esi + 0x1d8]
push edx
push 1
push 4
push eax
call ebp
mov eax, dword [0x659a18]
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 [0x659a18]
lea eax, [esi + 0x1e0]
push edx
push 1
push 0x30
push eax
call ebp
mov ecx, dword [0x659a18]
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 [0x659a18]
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 [0x659a18]
push eax
call edi
add esp, 4
push eax
call fcn.00472400
mov ecx, dword [0x659a18]
add esp, 0xc
lea eax, [esi + 0x224]
push 0x10
push eax
push ecx
call edi
add esp, 4
push eax
call fcn.00472400
mov edx, dword [0x659a18]
push edx
call edi
add esp, 0x10
mov ecx, esi
push eax
call fcn.0043b340
mov eax, dword [0x659a18]
lea edi, [esi + 0x308]
push eax
push 1
push 4
push edi
call ebp
mov ecx, dword [0x659a18]
lea eax, [esi + 0x30c]
push ecx
push 1
push 4
push eax
call ebp
mov edx, dword [0x659a18]
lea eax, [esi + 0x310]
push edx
push 1
push 4
push eax
call ebp
mov ecx, dword [0x659a18]
lea eax, [esi + 0x314]
push ecx
push 1
push 4
push eax
call ebp
mov edx, dword [0x659a3c]
mov eax, dword [esi + 0x1d0]
add esp, 0x40
test edx, eax
je 0x45e384
cmp dword [edi], ebx
je 0x45e384
push 0x46c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x2858], 2
je 0x45e376
mov ecx, dword [edi]
push ecx
mov ecx, eax
call fcn.00416650
mov byte [esp + 0x2858], 1
mov dword [edi], eax
jmp 0x45e386
xor eax, eax
mov byte [esp + 0x2858], 1
mov dword [edi], eax
jmp 0x45e386
mov dword [edi], ebx
mov edx, dword [0x659a40]
mov eax, dword [esi + 0x1d0]
test edx, eax
je 0x45e3d7
mov edi, dword [esi + 0x30c]
cmp edi, ebx
je 0x45e3d7
push 0x4c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x45e3c5
mov ecx, eax
call fcn.00458c40
push edi
mov ecx, eax
mov dword [esi + 0x30c], eax
call fcn.00458c90
jmp 0x45e3dd
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x30c], eax
call fcn.00458c90
jmp 0x45e3dd
mov dword [esi + 0x30c], ebx
mov eax, dword [0x659a44]
mov ecx, dword [esi + 0x1d0]
test eax, ecx
je 0x45e466
mov edi, dword [esi + 0x310]
cmp edi, ebx
je 0x45e420
push 0x12c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x45e410
mov ecx, eax
call fcn.0045dbd0
jmp 0x45e412
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x310], eax
call fcn.0045dc30
mov edi, dword [esi + 0x314]
cmp edi, ebx
je 0x45e472
push 0x38
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x45e454
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.00463780
jmp 0x45e472
xor eax, eax
push edi
mov ecx, eax
mov dword [esi + 0x314], eax
call fcn.00463780
jmp 0x45e472
mov dword [esi + 0x310], ebx
mov dword [esi + 0x314], ebx
mov ecx, dword [0x659a48]
mov eax, dword [esi + 0x1d0]
test ecx, eax
jne 0x45e48c
mov eax, dword [esi + 0xc4]
and dword [eax + 0x20], 0xfffffffe
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x210], ebx
cmp eax, ebx
je 0x45e507
mov eax, dword [esp + 0x2c]
dec eax
je 0x45e4e2
dec eax
je 0x45e4c3
dec eax
jne 0x45e507
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x45e4ff
mov edx, dword [esp + 0x1c]
mov ecx, eax
push edx
call fcn.004ba9e0
jmp 0x45e501
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x45e4ff
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004baf10
jmp 0x45e501
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x45e4ff
mov edx, dword [esp + 0x1c]
push ebx
push edx
mov ecx, eax
call fcn.004bac90
jmp 0x45e501
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 0x45e534
xor ecx, ecx
add eax, 4
mov cx, word [esi + 0x1d6]
mov dword [eax - 4], ecx
jmp 0x45e536
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 [0x659a18]
push ebx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x659a18]
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 0x45e5bf
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.0045da60
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 0x45e58f
lea eax, [esp + 0x10]
mov ecx, esi
push eax
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 + 0x3c]
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 + 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.00460f00
mov ecx, esi
call fcn.00460f60
lea edx, [eax + eax]
mov dword [esi + 0x2f8], eax
push edx
call fcn.00470b90
add esp, 4
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x300], ebx
push ebx
call fcn.004a0a00
mov ecx, eax
call fcn.004a0120
cdq
sub eax, edx
xor ebp, ebp
mov edi, eax
mov eax, dword [esi + 0x2f8]
sar edi, 1
cmp eax, ebx
jle 0x45e6f4
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.004a0a00
mov ecx, eax
call fcn.004a03d0
test eax, eax
je 0x45e6df
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 0x45e6a8
mov eax, dword [0x659a34]
mov ecx, dword [esi + 0x2f0]
test ecx, eax
je 0x45e742
mov ecx, dword [esi + 0x300]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x45e742
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 0x45e714
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