Function at 0x6042b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x6042b8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0040a6d0
xor eax, eax
push ebp
push 0x604607
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0xa
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040b414
mov eax, dword [ebp - 0x1c]
mov edx, 0x604624
call fcn.0040b3dc
sete al
test al, al
je 0x60446f
lea eax, [ebp - 8]
push eax
mov ecx, 0xff
mov edx, 0xb
mov eax, dword [ebp - 4]
call fcn.0040b414
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xc0
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00602ab0
cmp dword [ebp - 0x20], 0
je 0x60435c
mov dword [ebp - 0x10], 0xffffffff
jmp 0x6045dd
mov eax, dword [ebp - 0xc]
call fcn.00602f08
mov eax, dword [ebx + 0xb0]
add eax, 5
add eax, eax
add eax, eax
add eax, eax
call fcn.00406fec
mov dword [ebx + 0xc8], eax
mov eax, dword [ebx + 0xb0]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0xc8]
mov edx, dword [ebp - 8]
call fcn.00602ab0
cmp dword [ebp - 0x24], 0
jne 0x6045c4
cmp word [ebx], 0xc9
jge 0x6043d2
mov eax, dword [ebx + 0xb0]
dec eax
test eax, eax
jl 0x6043d2
inc eax
xor edx, edx
mov ecx, dword [ebx + 0xc8]
mov word [ecx + edx*8 + 2], 0x2710
inc edx
dec eax
jne 0x6043c1
cmp word [ebx], 0xc9
jge 0x604424
xor eax, eax
mov dword [ebx + 0xc4], eax
mov eax, dword [ebx + 0xb4]
add eax, 0x3e8
call fcn.00406fec
mov dword [ebx + 0xc0], eax
mov eax, dword [ebx + 0xb4]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0xc0]
mov edx, dword [ebp - 8]
call fcn.00602ab0
cmp dword [ebp - 0x28], 0
jne 0x6045c4
jmp 0x6045dd
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, dword [ebx + 0xb4]
add eax, 0x3e8
call fcn.00406fec
mov dword [ebx + 0xc4], eax
mov eax, dword [ebx + 0xb4]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0xc4]
mov edx, dword [ebp - 8]
call fcn.00602ab0
cmp dword [ebp - 0x2c], 0
jne 0x6045c4
jmp 0x6045dd
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040b040
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x6044a2
mov dword [ebp - 0x10], 0xffffffff
jmp 0x6045dd
mov ebx, dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc0
push ebx
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x6045c4
mov eax, dword [ebp - 0xc]
call fcn.00602f08
mov eax, dword [ebx + 0xb0]
add eax, 5
add eax, eax
add eax, eax
add eax, eax
call fcn.00406fec
mov edi, eax
mov dword [ebx + 0xc8], edi
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xb0]
add eax, eax
add eax, eax
add eax, eax
push eax
push edi
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x6045c4
cmp word [ebx], 0xc9
jge 0x604537
mov eax, dword [ebx + 0xb0]
dec eax
test eax, eax
jl 0x604537
inc eax
xor edx, edx
mov ecx, dword [ebx + 0xc8]
mov word [ecx + edx*8 + 2], 0x2710
inc edx
dec eax
jne 0x604526
cmp word [ebx], 0xc9
jge 0x60457e
xor eax, eax
mov dword [ebx + 0xc4], eax
mov eax, dword [ebx + 0xb4]
add eax, 0x3e8
call fcn.00406fec
mov edi, eax
mov dword [ebx + 0xc0], edi
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xb4]
push eax
push edi
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x6045c4
jmp 0x6045bc
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, dword [ebx + 0xb4]
add eax, 0x3e8
call fcn.00406fec
mov edi, eax
mov dword [ebx + 0xc4], edi
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xb4]
push eax
push edi
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x6045c4
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x6045dd
mov dword [ebp - 0x10], 0xfffffffe
test esi, esi
jle 0x6045d5
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
call fcn.00602f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60460e
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.0040a63c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a63c
pop eax
jmp eax