Function at 0x4088a4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x490eb4
call fcn.0046cdfc
sub esp, 0xc0
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00408d36
push ebx
push ebx
push 3
pop edi
push edi
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x408d15
push 4
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0046c780
add esp, 0xc
lea eax, [ebp - 0x20]
fldz
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
fstp qword [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
call fcn.004087f9
test eax, eax
je 0x408b9f
jmp 0x408919
push 3
pop edi
mov ecx, dword [ebp - 0x20]
push 1
pop edx
cmp dword [esi + 0x28], edx
jae 0x408982
mov eax, ecx
shr eax, 0x13
and eax, edi
sub eax, ebx
je 0x40894b
dec eax
je 0x408946
dec eax
je 0x40893d
dec eax
jne 0x40894e
mov dword [esi + 0x30], edi
jmp 0x40894e
mov dword [esi + 0x30], 2
jmp 0x40894e
mov dword [esi + 0x30], ebx
jmp 0x40894e
mov dword [esi + 0x30], edx
mov eax, ecx
shr eax, 0x11
and eax, edi
sub eax, ebx
je 0x408975
dec eax
je 0x408970
dec eax
je 0x408967
dec eax
jne 0x408978
mov dword [esi + 0x34], edx
jmp 0x408978
mov dword [esi + 0x34], 2
jmp 0x408978
mov dword [esi + 0x34], edi
jmp 0x408978
mov dword [esi + 0x34], ebx
mov eax, ecx
shr eax, 0x10
and eax, edx
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x34]
cmp eax, ebx
jle 0x408a07
cmp dword [esi + 0x30], edi
jne 0x4089ca
dec eax
je 0x4089b9
dec eax
je 0x4089a8
dec eax
jne 0x408a07
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af1e4]
jmp 0x408a04
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af1a4]
jmp 0x408a04
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af164]
jmp 0x408a04
dec eax
je 0x4089f5
dec eax
je 0x4089e4
dec eax
jne 0x408a07
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af2a4]
jmp 0x408a04
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af264]
jmp 0x408a04
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov eax, dword [eax*4 + 0x4af224]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jle 0x408a14
add dword [ebp - 0x1c], eax
push 1
pop edx
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0x408a47
mov eax, ecx
shr eax, 0xa
and eax, edi
sub eax, ebx
je 0x408a3e
dec eax
je 0x408a35
dec eax
jne 0x408aa6
mov dword [esi + 0x40], 0x7d00
jmp 0x408aa6
mov dword [esi + 0x40], 0xbb80
jmp 0x408aa6
mov dword [esi + 0x40], 0xac44
jmp 0x408aa6
cmp eax, 2
jne 0x408a78
mov eax, ecx
shr eax, 0xa
and eax, edi
sub eax, ebx
je 0x408a6f
dec eax
je 0x408a66
dec eax
jne 0x408aa6
mov dword [esi + 0x40], 0x3e80
jmp 0x408aa6
mov dword [esi + 0x40], 0x5dc0
jmp 0x408aa6
mov dword [esi + 0x40], 0x5622
jmp 0x408aa6
cmp eax, edx
jne 0x408aa6
mov eax, ecx
shr eax, 0xa
and eax, edi
sub eax, ebx
je 0x408a9f
dec eax
je 0x408a96
dec eax
jne 0x408aa6
mov dword [esi + 0x40], 0x1f40
jmp 0x408aa6
mov dword [esi + 0x40], 0x2ee0
jmp 0x408aa6
mov dword [esi + 0x40], 0x2b11
mov edi, dword [esi + 0x40]
cmp edi, ebx
je 0x408b9f
mov eax, ecx
push 3
shr eax, 6
pop edx
and eax, edx
sub eax, ebx
je 0x408adf
dec eax
je 0x408ad6
dec eax
je 0x408acd
dec eax
jne 0x408ae2
mov dword [esi + 0x44], edx
jmp 0x408ae2
mov dword [esi + 0x44], 2
jmp 0x408ae2
mov dword [esi + 0x44], 1
jmp 0x408ae2
mov dword [esi + 0x44], ebx
mov eax, ecx
shr eax, 3
and eax, 1
mov dword [esi + 0x4c], eax
mov eax, ecx
shr eax, 2
and eax, 1
mov dword [esi + 0x50], eax
mov eax, ecx
and eax, edx
sub eax, ebx
je 0x408b20
dec eax
je 0x408b17
dec eax
je 0x408b0e
dec eax
jne 0x408b23
mov dword [esi + 0x48], edx
jmp 0x408b23
mov dword [esi + 0x48], 2
jmp 0x408b23
mov dword [esi + 0x48], 1
jmp 0x408b23
mov dword [esi + 0x48], ebx
cmp dword [esi + 0x34], 1
mov eax, dword [ebp - 0x10]
jne 0x408b42
imul eax, eax, 0x2ee0
cdq
idiv edi
shr ecx, 9
and ecx, 1
add eax, ecx
shl eax, 2
jmp 0x408b53
imul eax, eax, 0x23280
cdq
idiv edi
shr ecx, 9
and ecx, 1
add eax, ecx
mov ecx, dword [esi + 0x28]
sub eax, 4
inc ecx
cmp dword [ebp - 0x10], ebx
mov dword [esi + 0x28], ecx
je 0x408b88
lea ecx, [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
fild dword [ebp - 0x18]
imul ecx, ecx, 0x3e8
fmul qword [0x498438]
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
fdivp st(1)
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
push dword [ebp - 0x14]
call fcn.004087f9
test eax, eax
jne 0x408916
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
jbe 0x408bbf
mov eax, dword [ebp - 0x1c]
xor edx, edx
div ecx
fld qword [ebp - 0x2c]
or dword [esi + 8], 2
mov dword [esi + 0x3c], eax
call fcn.0046d73c
mov dword [esi + 0x2c], eax
push 2
push ebx
push 0xffffffffffffff80
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x408cfb
lea eax, [ebp - 0x24]
push ebx
push eax
mov edi, 0x80
lea eax, [ebp - 0xcc]
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408cfb
cmp dword [ebp - 0x24], edi
jne 0x408cfb
push 3
lea eax, [ebp - 0xcc]
push 0x4af908
push eax
call fcn.0046d690
add esp, 0xc
test eax, eax
jne 0x408cfb
push 0x1e
lea eax, [ebp - 0xc9]
pop edi
mov byte [ebp - 0x2e], bl
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x10]
push eax
call fcn.00484131
lea eax, [ebp - 0xab]
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0xc]
push eax
call fcn.00484131
lea eax, [ebp - 0x8d]
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x14]
push eax
call fcn.00484131
lea eax, [ebp - 0x6f]
push 4
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0x48], bl
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x1c]
push eax
call fcn.00484131
cmp byte [ebp - 0x4f], bl
je 0x408ccb
lea eax, [ebp - 0x6b]
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x18]
push eax
call fcn.00484131
jmp 0x408cf7
lea eax, [ebp - 0x6b]
push 0x1c
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046c7e0
add esp, 0xc
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x18]
push eax
call fcn.00484131
movzx eax, byte [ebp - 0x4e]
mov dword [esi + 0x20], eax
movzx eax, byte [ebp - 0x4d]
mov dword [esi + 0x24], eax
or dword [esi + 8], 1
lea eax, [ebp + 8]
lea ecx, [esi + 4]
push eax
call fcn.004840e1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
jmp 0x408d17
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00483fa8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4