Function at 0x4f4fab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab39
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x54c494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
and dword [ebp - 0x30], 0
call fcn.004f5d5e
mov ecx, eax
call fcn.004f9142
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xe4]
call fcn.004f5cfa
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x54]
mov ecx, dword [ebp + 0x1c]
call fcn.004d50a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004f6633
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
call fcn.004f8bb9
mov eax, dword [ebp + 0x20]
and dword [eax], 0
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x60]
call fcn.004f8bfc
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
cmp dword [ebp - 0x10], 0
jne 0x4f513f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e5
jne 0x4f50f8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4f50db
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004f6633
mov eax, dword [ebp + 8]
jmp 0x4f51a3
push 8
call fcn.00487d37
pop ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0
je 0x4f5120
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
call fcn.004d3197
mov dword [ebp - 0xec], eax
jmp 0x4f5127
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.004f7d30
mov ecx, dword [ebp + 0x1c]
call fcn.004f6633
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
mov eax, dword [ebp + 0x1c]
and dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4f518b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004f6633
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 0x1c