Function at 0x4efe1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fa4
xor eax, eax
push ebp
push 0x4f00d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004096d4
test al, al
je 0x4f00af
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403fb4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4f00af
xor eax, eax
push ebp
push 0x4f00a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0xffffffffffffff80
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer_1
xor edx, edx
cmp edx, 0xffffffff
jne 0x4efeb7
cmp eax, 0xffffffff
je 0x4f0091
push 0
lea eax, [ebp - 0x10]
push eax
push 0x80
lea eax, [ebp - 0xaf]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4f0091
cmp dword [ebp - 0x10], 0x80
jne 0x4f0091
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0xaf]
mov ecx, 3
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0045ce2c
mov eax, dword [ebp - 0xb4]
mov edx, 0x4f00ec
call fcn.00403f00
jne 0x4f0091
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x2f]
mov ecx, 0x1e
call fcn.0040a018
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x2f]
mov ecx, 0x1f
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040914c
mov edx, dword [ebp - 0xb4]
mov eax, ebx
call fcn.00403bc8
lea edx, [ebp - 0x8e]
lea eax, [ebp - 0x2f]
mov ecx, 0x1e
call fcn.0040a018
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x2f]
mov ecx, 0x1f
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040914c
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 4]
call fcn.00403bc8
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x2f]
mov ecx, 0x1e
call fcn.0040a018
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x2f]
mov ecx, 0x1f
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040914c
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 8]
call fcn.00403bc8
lea edx, [ebp - 0x52]
lea eax, [ebp - 0x2f]
mov ecx, 4
call fcn.0040a018
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x2f]
mov ecx, 0x1f
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040914c
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 0xc]
call fcn.00403bc8
lea edx, [ebp - 0x4e]
lea eax, [ebp - 0x2f]
mov ecx, 0x1c
call fcn.0040a018
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x2f]
mov ecx, 0x1f
call fcn.00403da0
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040914c
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 0x10]
call fcn.00403bc8
mov ax, word [ebp - 0x32]
xchg al, ah
mov word [ebx + 0x14], ax
mov al, byte [ebp - 0x30]
mov byte [ebx + 0x16], al
mov byte [ebx + 0x17], 0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f00af
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f00dc
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.00403b98
lea eax, [ebp - 4]
call fcn.00403b74
ret