Function at 0xf04dbe6
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 0xf04def1
cmp ecx, ebx
je 0xf04def1
cmp word [ebp + 0x10], bx
je 0xf04def1
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 0xf04deeb
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 0xf04deea
cmp dword [ebp - 0x30], 0x1c
jne 0xf04deea
cmp word [ebp - 0x12], bx
je 0xf04deea
cmp word [ebp - 0x14], bx
je 0xf04deea
push 8
lea eax, [ebp - 0x2c]
push 0xf003904
push eax
call fcn.0f0569d0
add esp, 0xc
test eax, eax
jne 0xf04deea
cmp word [ebp + 0xc], bx
movzx eax, word [ebp - 0x12]
je 0xf04dd34
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 0xf04dee1
movzx eax, word [ebp - 0x14]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f006f83
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04dce7
push 0x11
push ebx
push ebx
push 7
call fcn.0f034370
call fcn.0f034856
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 0xf04dd2e
cmp dword [ebp - 0x30], esi
jne 0xf04dd2e
xor ecx, ecx
cmp word [ebp - 0x14], bx
jbe 0xf04dd2e
mov dx, word [ebp + 0xc]
movzx eax, cx
lea eax, [eax + eax*2]
cmp word [edi + eax*2], dx
je 0xf04dd21
inc ecx
cmp cx, word [ebp - 0x14]
jb 0xf04dd08
jmp 0xf04dd2e
movzx eax, cx
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*2 + 2]
mov dword [ebp - 0x3c], eax
push edi
jmp 0xf04dde3
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f006f83
cmp eax, ebx
pop ecx
mov dword [ebp - 0x40], eax
jne 0xf04dd57
push 0x11
push ebx
push ebx
push 7
call fcn.0f034370
call fcn.0f034856
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x34]
call edi
test eax, eax
je 0xf04dde0
cmp dword [ebp - 0x30], esi
jne 0xf04dde0
cmp word [ebp - 0x12], bx
mov dword [ebp - 0x38], ebx
jbe 0xf04dde0
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.0f0562e2
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.0f0562e2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04ddc0
movsx eax, byte [esi + 1]
push eax
call fcn.0f0562e2
mov esi, eax
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax + 1]
push eax
call fcn.0f0562e2
cmp esi, eax
pop ecx
pop ecx
je 0xf04ddcf
inc dword [ebp - 0x38]
mov ax, word [ebp - 0x38]
cmp ax, word [ebp - 0x12]
jb 0xf04dd77
jmp 0xf04dde0
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.0f00579c
cmp dword [ebp - 0x3c], ebx
pop ecx
je 0xf04dee1
push ebx
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xf04dee1
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 0xf04dee1
cmp dword [ebp - 0x30], 0xa
jne 0xf04dee1
mov esi, dword [ebp - 0x44]
movsx eax, byte [esi]
push eax
call fcn.0f0562e2
mov edi, eax
movsx eax, byte [ebp - 0x10]
push eax
call fcn.0f0562e2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04dee1
movsx eax, byte [esi + 1]
push eax
call fcn.0f0562e2
mov esi, eax
movsx eax, byte [ebp - 0xf]
push eax
call fcn.0f0562e2
cmp eax, esi
pop ecx
pop ecx
jne 0xf04dee1
cmp byte [ebp - 7], bl
je 0xf04dee1
movzx eax, byte [ebp - 7]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f006f83
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04de98
push 0x11
push ebx
push ebx
push 7
call fcn.0f034370
call fcn.0f034856
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 0xf04deda
cmp dword [ebp - 0x30], esi
jne 0xf04deda
movzx cx, byte [ebp - 7]
cmp cx, bx
jbe 0xf04deda
mov dx, word [ebp + 0x10]
movzx eax, bx
lea eax, [eax + eax*2]
cmp dx, word [edi + eax*2]
je 0xf04ded3
inc ebx
cmp bx, cx
jb 0xf04debb
jmp 0xf04deda
mov dword [ebp - 0x48], 1
push edi
call fcn.0f00579c
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0x48]
pop esi
jmp 0xf04defb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0f01b45c
leave
ret 0x10