Function at 0x4c05e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c08d0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4c0746
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x4c0746
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 2
lea edx, [ebp - 0x54]
mov dword [ebp - 0x28], ecx
push ecx
push eax
push str.Sessions_dAppContainerNamedObjects_ls
push edx
call fcn.0043b100
add esp, 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 3
push eax
push str.NtCreateDirectoryObject
call fcn.0043c2d0
add esp, 8
movzx eax, byte [ebp + 0xc]
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x74]
shl eax, 7
or eax, 0x40
push 0
push ecx
push edx
push 0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e950
add esp, 0x18
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [0x64689c]
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x74]
mov dword [ebp - 0x10], 3
push edx
push 0xf
push eax
call ecx
test eax, eax
js 0x4c074e
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
cmp dword [eax], ecx
mov dword [ebp - 0x2c], ecx
je 0x4c075a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx]
mov edx, eax
inc esi
cmp esi, 2
jb 0x4c0724
mov dword [ebp - 0x20], edx
call fcn.0040e440
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0040f9e0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, 2
jb 0x4c073d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov dword [ecx], eax
call fcn.0040e440
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4c075a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c07ae
push eax
call fcn.004aeb00
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4c0791
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4c0787
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4c07c0
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4c07ab
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24]
jmp 0x4c07ae
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4c082e
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4c0824
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4c0847
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], 0
add esp, 0x18
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
cmp dword [ebp - 0x28], 0
je 0x4c0866
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x18
pop ebp
ret