Function at 0xf04e1bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0xf061038]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x44], ecx
je 0xf04e4c6
cmp ecx, ebx
je 0xf04e4c6
cmp word [ebp + 0x10], bx
je 0xf04e4c6
push esi
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x34], esi
je 0xf04e4c0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
je 0xf04e4bf
cmp dword [ebp - 0x30], 0x1c
jne 0xf04e4bf
cmp word [ebp - 0x12], bx
je 0xf04e4bf
cmp word [ebp - 0x14], bx
je 0xf04e4bf
push 8
lea eax, [ebp - 0x2c]
push 0xf003998
push eax
call fcn.0f056fa0
add esp, 0xc
test eax, eax
jne 0xf04e4bf
cmp word [ebp + 0xc], bx
movzx eax, word [ebp - 0x12]
je 0xf04e309
push 1
lea eax, [eax + eax*2]
push ebx
shl eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xf04e4b6
movzx eax, word [ebp - 0x14]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f007089
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04e2bc
push 0x11
push ebx
push ebx
push 7
call fcn.0f034721
call fcn.0f034c11
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf04e303
cmp dword [ebp - 0x30], esi
jne 0xf04e303
xor ecx, ecx
cmp word [ebp - 0x14], bx
jbe 0xf04e303
mov dx, word [ebp + 0xc]
movzx eax, cx
lea eax, [eax + eax*2]
cmp word [edi + eax*2], dx
je 0xf04e2f6
inc ecx
cmp cx, word [ebp - 0x14]
jb 0xf04e2dd
jmp 0xf04e303
movzx eax, cx
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*2 + 2]
mov dword [ebp - 0x3c], eax
push edi
jmp 0xf04e3b8
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f007089
cmp eax, ebx
pop ecx
mov dword [ebp - 0x40], eax
jne 0xf04e32c
push 0x11
push ebx
push ebx
push 7
call fcn.0f034721
call fcn.0f034c11
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x34]
call edi
test eax, eax
je 0xf04e3b5
cmp dword [ebp - 0x30], esi
jne 0xf04e3b5
cmp word [ebp - 0x12], bx
mov dword [ebp - 0x38], ebx
jbe 0xf04e3b5
movzx eax, word [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*2]
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax]
push eax
call fcn.0f0568b2
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.0f0568b2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04e395
movsx eax, byte [esi + 1]
push eax
call fcn.0f0568b2
mov esi, eax
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax + 1]
push eax
call fcn.0f0568b2
cmp esi, eax
pop ecx
pop ecx
je 0xf04e3a4
inc dword [ebp - 0x38]
mov ax, word [ebp - 0x38]
cmp ax, word [ebp - 0x12]
jb 0xf04e34c
jmp 0xf04e3b5
movzx eax, word [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*2 + 2]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x40]
call fcn.0f0058a2
cmp dword [ebp - 0x3c], ebx
pop ecx
je 0xf04e4b6
push ebx
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xf04e4b6
push ebx
lea eax, [ebp - 0x30]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf04e4b6
cmp dword [ebp - 0x30], 0xa
jne 0xf04e4b6
mov esi, dword [ebp - 0x44]
movsx eax, byte [esi]
push eax
call fcn.0f0568b2
mov edi, eax
movsx eax, byte [ebp - 0x10]
push eax
call fcn.0f0568b2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04e4b6
movsx eax, byte [esi + 1]
push eax
call fcn.0f0568b2
mov esi, eax
movsx eax, byte [ebp - 0xf]
push eax
call fcn.0f0568b2
cmp eax, esi
pop ecx
pop ecx
jne 0xf04e4b6
cmp byte [ebp - 7], bl
je 0xf04e4b6
movzx eax, byte [ebp - 7]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f007089
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04e46d
push 0x11
push ebx
push ebx
push 7
call fcn.0f034721
call fcn.0f034c11
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf04e4af
cmp dword [ebp - 0x30], esi
jne 0xf04e4af
movzx cx, byte [ebp - 7]
cmp cx, bx
jbe 0xf04e4af
mov dx, word [ebp + 0x10]
movzx eax, bx
lea eax, [eax + eax*2]
cmp dx, word [edi + eax*2]
je 0xf04e4a8
inc ebx
cmp bx, cx
jb 0xf04e490
jmp 0xf04e4af
mov dword [ebp - 0x48], 1
push edi
call fcn.0f0058a2
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0x48]
pop esi
jmp 0xf04e4d0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0f01b780
leave
ret 0x10