Function at 0x408b50
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x3c8]
xor ebx, ebx
cmp edx, ebx
je 0x408dcb
mov eax, dword [esi + 0x41c]
cmp eax, ebx
jne 0x408b75
mov byte [esi + 0x420], bl
cmp word [esi + 0x406], bx
mov cl, byte [esp + 0x18]
push edi
jle 0x408b8e
cmp cl, bl
je 0x408b96
mov byte [esi + 0x420], 1
cmp cl, bl
jne 0x408d08
mov ecx, dword [esi + 0x3dc]
dec ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ecx
jb 0x408bbb
push ebx
push ebx
push 4
push edx
mov byte [esi + 0x420], bl
mov dword [esi + 0x41c], ebx
call ebp
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x408bd4
push eax
call fcn.0042cb2a
add esp, 4
mov dword [esi + 0x3e8], ebx
mov ecx, dword [esi + 0x3c8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
mov edx, dword [esi + 0x3c8]
push 1
push ebx
push 0xfffffffffffffffc
push edx
call ebp
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x408cd4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov edx, dword [esp + 0x24]
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3c8]
push ecx
push eax
push edx
mov dword [esi + 0x3e8], eax
call edi
mov eax, dword [esi + 0x408]
cmp eax, ebx
jle 0x408cb9
push 0x31
push eax
mov ecx, esi
call fcn.00402440
test eax, eax
je 0x408c6f
fldz
mov dword [esi + 0x408], ebx
fst dword [esi + 0x40c]
fstp dword [esi + 0x410]
jmp 0x408cb9
mov eax, dword [esi + 0x414]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
neg eax
add ebp, eax
mov eax, dword [esi + 0x418]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
call fcn.0042e980
cdq
idiv dword [esi + 0x414]
add ebp, edx
mov dword [esp + 0x18], ebp
call fcn.0042e980
cdq
idiv dword [esi + 0x418]
add edi, edx
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408230
mov edx, dword [esi + 0x3dc]
mov ecx, 1
add dword [esi + 0x41c], ecx
mov eax, dword [esi + 0x41c]
sub edx, ecx
pop ebp
cmp eax, edx
jb 0x408db1
add word [esi + 0x406], cx
mov byte [esi + 0x420], cl
jmp 0x408db1
mov ecx, dword [esi + 0x3e8]
cmp ecx, ebx
je 0x408d25
mov eax, dword [esp + 0x18]
push ebx
push 1
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
jmp 0x408daa
push eax
mov ecx, esi
call fcn.00405b40
mov ecx, dword [esi + 0x3c8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push ecx
call edi
mov edx, dword [esi + 0x3c8]
push 1
push ebx
push 0xfffffffffffffffc
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cb50
mov edx, dword [esp + 0x20]
add esp, 4
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x3c8]
push ecx
push eax
push edx
mov dword [esi + 0x3e8], eax
call edi
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408230
mov eax, dword [esi + 0x3e8]
pop edi
cmp eax, ebx
je 0x408dcb
push eax
call fcn.0042cb2a
add esp, 4
mov dword [esi + 0x3e8], ebx
pop esi
pop ebx
pop ecx
ret 0xc