Function at 0x457a50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5467a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0043cc70
lea edi, [esi + 0x1d4]
mov eax, 1
lea ebp, [esi + 0x1dc]
mov dword [esp + 0x24], 0
mov word [edi], ax
mov word [edi + 2], ax
mov ecx, ebp
mov dword [edi + 4], eax
call fcn.0041add0
mov eax, dword [esi + 0xc4]
mov dword [esi], 0x54e270
mov ebx, dword [eax + 0x20]
and ebx, 0xfffffffe
mov dword [eax + 0x20], ebx
mov ecx, dword [0x67a8cc]
push ecx
lea ebx, [esi + 0x1d0]
push 1
push 4
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [ebx]
add esp, 0x10
test al, 0x10
je 0x457b8b
push 0x24
call fcn.004784b0
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x457b10
mov edx, dword [0x67a8cc]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esp + 0x34]
add esp, 4
push eax
call fcn.00495d60
jmp 0x457b12
xor eax, eax
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, 0xffffd8f1
mov dword [esp + 0x14], eax
mov edx, ecx
mov word [esp + 0x14], cx
sub edx, eax
mov eax, ecx
add word [esp + 0x18], dx
mov edx, dword [esp + 0x16]
sub eax, edx
mov word [esp + 0x16], cx
add word [esp + 0x1a], ax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], ecx
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 + 0x14]
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004c9320
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
jmp 0x457b9e
mov eax, dword [0x67a8cc]
push 1
push 0x10
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test byte [ebx], 0x20
je 0x457c37
push 0x24
call fcn.004784b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x457bd3
mov ecx, dword [0x67a8cc]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebx
push eax
call fcn.00495d60
jmp 0x457bd5
xor eax, eax
mov edx, dword [esi + 0x14]
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
lea ecx, [eax - 1]
mov word [esp + 0x18], cx
mov edx, dword [esp + 0x16]
dec edx
mov word [esp + 0x1a], dx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
movsx ecx, word [esi + 0x16]
movsx edx, word [esi + 0x12]
movsx eax, word [esi + 0x14]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [esi + 0x10]
sub eax, ecx
lea ecx, [esp + 0x18]
inc eax
push eax
push 0
push 0
call fcn.004c9320
mov edx, dword [eax]
mov dword [esi + 0x34], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x38], eax
jmp 0x457c4b
mov ecx, dword [0x67a8cc]
push 1
push 0x10
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [0x67a8cc]
push edx
push 1
push 8
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
call edi
mov eax, dword [0x67a8cc]
push eax
push 1
push 0xc
push ebp
call edi
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x24
mov ecx, esi
push eax
call fcn.0043ede0
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xb8], 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4