Function at 0x42de00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52fd58
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.00429890
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], 0x533c20
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 [0x659a18]
push edx
push ebp
lea eax, [esp + 0x58]
push 0x10
push eax
call edi
mov ecx, dword [0x659a18]
lea edx, [esp + 0x80]
push ecx
push ebp
push 2
push edx
call edi
movsx eax, word [esp + 0x90]
mov edx, dword [0x5c4868]
mov ecx, eax
shl ecx, 5
sub ecx, eax
add esp, 0x20
lea eax, [edx + ecx*4]
push ebp
mov dword [esi + 0x1e0], eax
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0042aec0
mov edx, dword [0x659a18]
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 [0x659a18]
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 [0x659a18]
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 0x42df9e
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42df96
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x42df98
xor eax, eax
mov dword [esi + 0x12c], eax
mov edx, dword [0x659a18]
lea eax, [esp + 0x10]
push edx
push ebp
push 4
push eax
mov dword [esp + 0x20], ebx
call edi
mov eax, dword [0x659958]
add esp, 0x10
cmp eax, 0x1d
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
jl 0x42e006
mov edx, dword [0x659a18]
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 [0x659a50], eax
je 0x42e024
mov eax, dword [esi + 0x214]
or ah, 8
mov dword [esi + 0x214], eax
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0042aa10
test byte [esi + 0x24c], 8
je 0x42e0b0
mov eax, ebp
dec eax
je 0x42e08b
dec eax
je 0x42e06c
dec eax
jne 0x42e0b0
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e0a8
mov edx, dword [esp + 0x10]
mov ecx, eax
push edx
call fcn.004ba9e0
jmp 0x42e0aa
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e0a8
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, eax
call fcn.004baf10
jmp 0x42e0aa
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e0a8
mov edx, dword [esp + 0x10]
push ebx
push edx
mov ecx, eax
call fcn.004bac90
jmp 0x42e0aa
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 0x42e130
cmp dword [esp + edi + 0x18], ebx
jle 0x42e130
mov eax, dword [esp + edi + 0x34]
dec eax
je 0x42e10e
dec eax
je 0x42e0ef
dec eax
jne 0x42e130
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e12b
mov ecx, dword [esp + edi + 0x18]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x42e12d
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e12b
mov edx, dword [esp + edi + 0x18]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x42e12d
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebx
je 0x42e12b
mov ecx, dword [esp + edi + 0x18]
push ebx
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x42e12d
xor eax, eax
mov dword [ebp], eax
add edi, 4
add ebp, 4
cmp edi, 8
jl 0x42e0ba
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.0042f590
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.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 + 0x28]
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]
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