Function at 0xf094fd6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0xf0ad034]
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 0xf0952e1
cmp ecx, ebx
je 0xf0952e1
cmp word [ebp + 0x10], bx
je 0xf0952e1
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 0xf0952db
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 0xf0952da
cmp dword [ebp - 0x30], 0x1c
jne 0xf0952da
cmp word [ebp - 0x12], bx
je 0xf0952da
cmp word [ebp - 0x14], bx
je 0xf0952da
push 8
lea eax, [ebp - 0x2c]
push 0xf006f50
push eax
call fcn.0f09aed0
add esp, 0xc
test eax, eax
jne 0xf0952da
cmp word [ebp + 0xc], bx
movzx eax, word [ebp - 0x12]
je 0xf095124
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 0xf0952d1
movzx eax, word [ebp - 0x14]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f009d40
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf0950d7
push 0x11
push ebx
push ebx
push 7
call fcn.0f03db09
call fcn.0f03e381
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 0xf09511e
cmp dword [ebp - 0x30], esi
jne 0xf09511e
xor ecx, ecx
cmp word [ebp - 0x14], bx
jbe 0xf09511e
mov dx, word [ebp + 0xc]
movzx eax, cx
lea eax, [eax + eax*2]
cmp word [edi + eax*2], dx
je 0xf095111
inc ecx
cmp cx, word [ebp - 0x14]
jb 0xf0950f8
jmp 0xf09511e
movzx eax, cx
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*2 + 2]
mov dword [ebp - 0x3c], eax
push edi
jmp 0xf0951d3
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f009d40
cmp eax, ebx
pop ecx
mov dword [ebp - 0x40], eax
jne 0xf095147
push 0x11
push ebx
push ebx
push 7
call fcn.0f03db09
call fcn.0f03e381
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x34]
call edi
test eax, eax
je 0xf0951d0
cmp dword [ebp - 0x30], esi
jne 0xf0951d0
cmp word [ebp - 0x12], bx
mov dword [ebp - 0x38], ebx
jbe 0xf0951d0
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.0f09ad00
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.0f09ad00
cmp eax, edi
pop ecx
pop ecx
jne 0xf0951b0
movsx eax, byte [esi + 1]
push eax
call fcn.0f09ad00
mov esi, eax
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax + 1]
push eax
call fcn.0f09ad00
cmp esi, eax
pop ecx
pop ecx
je 0xf0951bf
inc dword [ebp - 0x38]
mov ax, word [ebp - 0x38]
cmp ax, word [ebp - 0x12]
jb 0xf095167
jmp 0xf0951d0
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.0f008a60
cmp dword [ebp - 0x3c], ebx
pop ecx
je 0xf0952d1
push ebx
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xf0952d1
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 0xf0952d1
cmp dword [ebp - 0x30], 0xa
jne 0xf0952d1
mov esi, dword [ebp - 0x44]
movsx eax, byte [esi]
push eax
call fcn.0f09ad00
mov edi, eax
movsx eax, byte [ebp - 0x10]
push eax
call fcn.0f09ad00
cmp eax, edi
pop ecx
pop ecx
jne 0xf0952d1
movsx eax, byte [esi + 1]
push eax
call fcn.0f09ad00
mov esi, eax
movsx eax, byte [ebp - 0xf]
push eax
call fcn.0f09ad00
cmp eax, esi
pop ecx
pop ecx
jne 0xf0952d1
cmp byte [ebp - 7], bl
je 0xf0952d1
movzx eax, byte [ebp - 7]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f009d40
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf095288
push 0x11
push ebx
push ebx
push 7
call fcn.0f03db09
call fcn.0f03e381
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 0xf0952ca
cmp dword [ebp - 0x30], esi
jne 0xf0952ca
movzx cx, byte [ebp - 7]
cmp cx, bx
jbe 0xf0952ca
mov dx, word [ebp + 0x10]
movzx eax, bx
lea eax, [eax + eax*2]
cmp dx, word [edi + eax*2]
je 0xf0952c3
inc ebx
cmp bx, cx
jb 0xf0952ab
jmp 0xf0952ca
mov dword [ebp - 0x48], 1
push edi
call fcn.0f008a60
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0x48]
pop esi
jmp 0xf0952eb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0f01dda0
leave
ret 0x10