Function at 0xf04e428
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0xf062038]
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 0xf04e733
cmp ecx, ebx
je 0xf04e733
cmp word [ebp + 0x10], bx
je 0xf04e733
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 0xf04e72d
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 0xf04e72c
cmp dword [ebp - 0x30], 0x1c
jne 0xf04e72c
cmp word [ebp - 0x12], bx
je 0xf04e72c
cmp word [ebp - 0x14], bx
je 0xf04e72c
push 8
lea eax, [ebp - 0x2c]
push 0xf0039cc
push eax
call fcn.0f0572a0
add esp, 0xc
test eax, eax
jne 0xf04e72c
cmp word [ebp + 0xc], bx
movzx eax, word [ebp - 0x12]
je 0xf04e576
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 0xf04e723
movzx eax, word [ebp - 0x14]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f0070c9
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04e529
push 0x11
push ebx
push ebx
push 7
call fcn.0f034914
call fcn.0f034e04
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 0xf04e570
cmp dword [ebp - 0x30], esi
jne 0xf04e570
xor ecx, ecx
cmp word [ebp - 0x14], bx
jbe 0xf04e570
mov dx, word [ebp + 0xc]
movzx eax, cx
lea eax, [eax + eax*2]
cmp word [edi + eax*2], dx
je 0xf04e563
inc ecx
cmp cx, word [ebp - 0x14]
jb 0xf04e54a
jmp 0xf04e570
movzx eax, cx
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*2 + 2]
mov dword [ebp - 0x3c], eax
push edi
jmp 0xf04e625
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f0070c9
cmp eax, ebx
pop ecx
mov dword [ebp - 0x40], eax
jne 0xf04e599
push 0x11
push ebx
push ebx
push 7
call fcn.0f034914
call fcn.0f034e04
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x34]
call edi
test eax, eax
je 0xf04e622
cmp dword [ebp - 0x30], esi
jne 0xf04e622
cmp word [ebp - 0x12], bx
mov dword [ebp - 0x38], ebx
jbe 0xf04e622
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.0f056bb2
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.0f056bb2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04e602
movsx eax, byte [esi + 1]
push eax
call fcn.0f056bb2
mov esi, eax
mov eax, dword [ebp - 0x44]
movsx eax, byte [eax + 1]
push eax
call fcn.0f056bb2
cmp esi, eax
pop ecx
pop ecx
je 0xf04e611
inc dword [ebp - 0x38]
mov ax, word [ebp - 0x38]
cmp ax, word [ebp - 0x12]
jb 0xf04e5b9
jmp 0xf04e622
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.0f0058e2
cmp dword [ebp - 0x3c], ebx
pop ecx
je 0xf04e723
push ebx
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0xf04e723
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 0xf04e723
cmp dword [ebp - 0x30], 0xa
jne 0xf04e723
mov esi, dword [ebp - 0x44]
movsx eax, byte [esi]
push eax
call fcn.0f056bb2
mov edi, eax
movsx eax, byte [ebp - 0x10]
push eax
call fcn.0f056bb2
cmp eax, edi
pop ecx
pop ecx
jne 0xf04e723
movsx eax, byte [esi + 1]
push eax
call fcn.0f056bb2
mov esi, eax
movsx eax, byte [ebp - 0xf]
push eax
call fcn.0f056bb2
cmp eax, esi
pop ecx
pop ecx
jne 0xf04e723
cmp byte [ebp - 7], bl
je 0xf04e723
movzx eax, byte [ebp - 7]
lea esi, [eax + eax*2]
shl esi, 1
push esi
call fcn.0f0070c9
mov edi, eax
cmp edi, ebx
pop ecx
jne 0xf04e6da
push 0x11
push ebx
push ebx
push 7
call fcn.0f034914
call fcn.0f034e04
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 0xf04e71c
cmp dword [ebp - 0x30], esi
jne 0xf04e71c
movzx cx, byte [ebp - 7]
cmp cx, bx
jbe 0xf04e71c
mov dx, word [ebp + 0x10]
movzx eax, bx
lea eax, [eax + eax*2]
cmp dx, word [edi + eax*2]
je 0xf04e715
inc ebx
cmp bx, cx
jb 0xf04e6fd
jmp 0xf04e71c
mov dword [ebp - 0x48], 1
push edi
call fcn.0f0058e2
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0x48]
pop esi
jmp 0xf04e73d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0f01b9b9
leave
ret 0x10