Function at 0x42e390
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x18], esi
call fcn.00429c10
mov ebp, 1
xor ebx, ebx
mov word [esi + 0x250], bp
mov word [esi + 0x252], bp
mov dword [esi + 0x254], ebp
mov dword [esi + 0x284], ebx
mov word [esi + 0x28a], bx
mov word [esi + 0x288], bx
mov dword [esi + 0x28c], ebx
mov dword [esi + 0x290], ebx
mov dword [esi + 0x294], ebx
mov dword [esi + 0x298], ebp
mov dword [esi + 0x29c], ebp
mov dword [esi + 0x2a0], ebp
mov dword [esi + 0x2a4], ebp
lea eax, [esi + 0x27c]
mov word [esi + 0x2a8], bx
mov word [esi + 0x2aa], bx
xor ecx, ecx
mov dword [esi + 0x2ac], ebx
mov dword [esi + 0x2b0], ebx
mov dword [esi], 0x54ad60
mov dword [eax], ecx
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp + 0x68], ebx
mov dword [eax + 4], ecx
mov edx, dword [0x67a8cc]
push edx
push ebp
lea eax, [esp + 0x58]
push 0x10
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x80]
push ecx
push ebp
push 2
push edx
call edi
movsx eax, word [esp + 0x90]
mov edx, dword [0x5dde60]
mov ecx, eax
shl ecx, 5
add ecx, eax
add esp, 0x20
lea eax, [edx + ecx*4]
push ebp
mov dword [esi + 0x1e0], eax
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0042b280
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x24c]
push edx
push ebp
push 0x30
push eax
call edi
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + 0x278]
mov edx, dword [0x67a8cc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push edx
push ebp
lea eax, [esp + 0x30]
push 8
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x60]
push ecx
push ebp
push 0x10
push edx
call edi
mov al, byte [esi + 0x24c]
add esp, 0x30
test al, 4
je 0x42e52e
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e526
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x42e528
xor eax, eax
mov dword [esi + 0x12c], eax
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x10]
push edx
push ebp
push 4
push eax
mov dword [esp + 0x20], ebx
call edi
mov eax, dword [0x67a7f0]
add esp, 0x10
cmp eax, 0x1d
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
jl 0x42e596
mov edx, dword [0x67a8cc]
xor ecx, ecx
push edx
push ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push 0xc
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ecx
call edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
add esp, 0x10
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebp
movsx eax, byte [esi + 0x1f8]
test dword [0x67a900], eax
je 0x42e5b4
mov eax, dword [esi + 0x214]
or ah, 8
mov dword [esi + 0x214], eax
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0042add0
test byte [esi + 0x24c], 8
je 0x42e63b
dec ebp
je 0x42e616
dec ebp
je 0x42e5fa
dec ebp
jne 0x42e63b
push 0x1c
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e633
mov edx, dword [esp + 0x10]
mov ecx, eax
push edx
call fcn.004cf860
jmp 0x42e635
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e633
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, eax
call fcn.004cfd90
jmp 0x42e635
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e633
mov edx, dword [esp + 0x10]
push ebx
push edx
mov ecx, eax
call fcn.004cfb10
jmp 0x42e635
xor eax, eax
mov dword [esi + 0x284], eax
lea eax, [esi + 0x27c]
xor edi, edi
mov ebp, eax
cmp dword [esp + edi + 0x20], ebx
je 0x42e6b8
cmp dword [esp + edi + 0x18], ebx
jle 0x42e6b8
mov eax, dword [esp + edi + 0x34]
dec eax
je 0x42e696
dec eax
je 0x42e67a
dec eax
jne 0x42e6b8
push 0x1c
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e6b3
mov ecx, dword [esp + edi + 0x18]
push ecx
mov ecx, eax
call fcn.004cf860
jmp 0x42e6b5
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e6b3
mov edx, dword [esp + edi + 0x18]
mov ecx, eax
push edx
call fcn.004cfd90
jmp 0x42e6b5
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x42e6b3
mov ecx, dword [esp + edi + 0x18]
push ebx
push ecx
mov ecx, eax
call fcn.004cfb10
jmp 0x42e6b5
xor eax, eax
mov dword [ebp], eax
add edi, 4
add ebp, 4
cmp edi, 8
jl 0x42e645
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.0042fb30
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 + 0x2c]
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 + 0x28]
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]
pop edi
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax + 4]
mov eax, esi
mov dword [esi + 0x38], edx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 4