Function at 0xf02f8bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0f00dcd0
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp word [ebp + 0x10], 0x10
push esi
push edi
mov dword [ebp - 0x1018], ebx
ja 0xf02fc43
cmp word [ebp + 0xc], 8
jne 0xf02fc43
mov eax, dword [0xf07df68]
lea edx, [eax + 9]
mov ecx, 0x1000
cmp edx, ecx
ja 0xf02fc43
cmp eax, ecx
ja 0xf02fc43
push eax
push dword [0xf07df64]
lea eax, [ebp - 0x1004]
push eax
call fcn.0f00a4b0
mov eax, dword [0xf07df68]
push 9
lea eax, [ebp + eax - 0x1004]
push 0xf002fdc
push eax
call fcn.0f00a4b0
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1008], esi
cmp esi, 0xffffffff
je 0xf02fc43
push ebx
lea eax, [ebp - 0x1010]
push eax
push 0x17
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf02fc3c
cmp dword [ebp - 0x1010], 0x17
jne 0xf02fc3c
push 2
pop ecx
mov edi, 0xf002fd0
lea esi, [ebp - 0x1004]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xf02f9d5
push 2
pop ecx
mov edi, 0xf002fc4
lea esi, [ebp - 0x1004]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xf02f9cb
push dword [ebp - 0x1008]
jmp 0xf02fc3d
mov dword [ebp - 0x1018], 1
mov eax, dword [ebp - 0xff1]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push eax
push dword [ebp - 0x1008]
mov dword [ebp - 0x1014], eax
call esi
cmp eax, 0xffffffff
je 0xf02f9c0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x1010]
push eax
push 2
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf02f9c0
cmp dword [ebp - 0x1010], 2
jne 0xf02f9c0
movzx eax, word [ebp - 0x1004]
add dword [ebp - 0x1014], 2
mov dword [ebp - 0x100c], eax
cmp eax, ebx
jbe 0xf02fab3
push ebx
lea eax, [ebp - 0x1010]
push eax
push 0x1c
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf02fab3
cmp dword [ebp - 0x1010], 0x1c
jne 0xf02fab3
movzx eax, word [ebp - 0xff4]
cmp eax, dword [ebp + 8]
je 0xf02fab3
cmp dword [ebp - 0x100c], 1
jbe 0xf02faab
mov eax, dword [ebp - 0x1002]
cmp dword [ebp - 0x1018], ebx
jne 0xf02fa8c
add dword [ebp - 0x1014], eax
jmp 0xf02fa92
mov dword [ebp - 0x1014], eax
push ebx
push ebx
push dword [ebp - 0x1014]
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf02f9c0
dec dword [ebp - 0x100c]
jne 0xf02fa3b
cmp dword [ebp - 0x100c], ebx
je 0xf02f9c0
mov eax, dword [ebp - 0xfec]
cmp dword [ebp - 0x1018], ebx
jne 0xf02fad5
add dword [ebp - 0x1014], eax
jmp 0xf02fadb
mov dword [ebp - 0x1014], eax
push ebx
push ebx
push dword [ebp - 0x1014]
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf02f9c0
push ebx
lea eax, [ebp - 0x1010]
push eax
push 6
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf02f9c0
cmp dword [ebp - 0x1010], 6
jne 0xf02f9c0
movzx eax, word [ebp - 0x1002]
mov dword [ebp - 0x100c], eax
cmp eax, ebx
je 0xf02fbec
push ebx
lea eax, [ebp - 0x1010]
push eax
push 6
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf02fbec
cmp dword [ebp - 0x1010], 6
jne 0xf02fbec
movzx ax, byte [ebp - 0x1004]
cmp ax, word [ebp + 0x10]
jne 0xf02fb7c
cmp byte [ebp - 0x1003], 8
je 0xf02fbac
movzx eax, word [ebp - 0x1000]
movzx ecx, byte [ebp - 0x1004]
imul eax, ecx
push 1
push ebx
push eax
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf02f9c0
dec dword [ebp - 0x100c]
jne 0xf02fb37
jmp 0xf02fbec
movzx eax, word [ebp - 0x1000]
movzx esi, word [ebp + 0x10]
imul esi, eax
push ebx
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1010]
push eax
push esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf02f9c0
cmp dword [ebp - 0x1010], esi
jne 0xf02f9c0
push dword [ebp - 0x1008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x100c], ebx
je 0xf02fc43
mov eax, dword [ebp - 0x1018]
mov edi, 0xa0000
lea esi, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
cmp eax, ebx
jbe 0xf02fc37
movzx ebx, word [ebp + 0x10]
push ebx
push esi
push edi
call fcn.0f00a4b0
add esp, 0xc
add esi, ebx
add edi, 0x20
dec dword [ebp - 0x100c]
jne 0xf02fc1f
xor eax, eax
inc eax
jmp 0xf02fc45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0xc