Function at 0x5cf814
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5cf81d
push ecx
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x5cf835
add esp, 0xfffffff0
call fcn.004086e8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5cfb2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + 8]
mov byte [edx + 0x20], al
test al, al
je 0x5cf96a
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0040ab90
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], ebx
cmp ebx, 0xffffffff
jne 0x5cf8ac
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5cfb64
call fcn.0040ade4
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x5c73ac]
call fcn.00428fe8
call fcn.0040945c
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ebx
test ebx, ebx
jne 0x5cf8f2
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5cfb94
call fcn.0040ade4
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x5c73ac]
call fcn.00428fe8
call fcn.0040945c
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
test ebx, ebx
jne 0x5cf956
push 0x5cfbe4
push dword [ebp - 0xc]
push 0x5cfc14
lea eax, [ebp - 0x24]
call fcn.005ca3fc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040ac70
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040ae6c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x5c73ac]
call fcn.00428fe8
call fcn.0040945c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
jmp 0x5cfa11
push 0x40
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x490e94]
call fcn.004b5dfc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x5cfa0a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 0x10], 0
jne 0x5cf9a5
cmp dword [ebp + 0xc], 0
jne 0x5cf9a5
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
call fcn.00406738
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x5cf9df
call fcn.00407dac
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
call fcn.004b4544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cfa11
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.004080e4
ret
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.005cf7fc
cmp eax, 0x950412de
je 0x5cfa5a
cmp eax, 0xde120495
je 0x5cfa5a
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5cfc50
call fcn.0040ade4
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x5c73ac]
call fcn.00428fe8
call fcn.0040945c
cmp eax, 0xde120495
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.005cf7fc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005cf7fc
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 0xc
mov eax, dword [ebp - 4]
call fcn.005cf7fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov ecx, 0x10
mov eax, dword [ebp - 4]
call fcn.005cf7fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jns 0x5cfad5
call fcn.00407dac
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 1
test eax, eax
je 0x5cfaef
shr eax, 1
mov edx, dword [ebp - 4]
shl dword [edx + 0x18], 1
test eax, eax
jne 0x5cfae3
mov eax, dword [ebp - 4]
shr dword [eax + 0x18], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
shr eax, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cfb35
lea eax, [ebp - 0x28]
call fcn.00409d90
lea eax, [ebp - 0x24]
call fcn.00409dd8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00409df0
ret