Function at 0x404ec0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x4a3ecc]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.00449a40
mov esi, 0x78
cmp eax, 5
jge 0x404f08
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be32
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 0x57
cmp edi, 1
ja 0x404ef4
cmp dword [ebp - 0x30], 0
je 0x404ef4
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.CreateAppContainerToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404ff4
mov esi, eax
mov dword [ebp - 0x34], 0
test ebx, ebx
je 0x40500b
lea eax, [ebp - 0x1c]
mov dword [eax], 0
mov ecx, esi
call dword [0x4893dc]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x38]
push ebx
call esi
test eax, eax
je 0x40506c
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
test ebx, ebx
je 0x404f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, 0xffffffff
je 0x405273
call fcn.00449c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
cmp edi, 1
jne 0x405079
lea edi, [ecx + 1]
cmp edi, 2
jb 0x404fad
mov esi, ecx
call fcn.00449c40
mov ecx, esi
xor ebx, ebx
mov esi, 0
mov eax, dword [ebp - 0x30]
cmp dword [eax], ecx
je 0x40521b
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x405253
cmp edi, 2
jb 0x404fe4
mov dword [ecx], ebx
call fcn.00449c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
jmp 0x40521b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be32
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 0x2c]
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40511f
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x34], 0
test eax, eax
je 0x404f48
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40529a
call fcn.00449c40
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x2c]
jmp 0x404f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405231
lea eax, [ebp - 0x20]
mov dword [eax], 0
sub esp, 0x18
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [0x48a580]
movups xmmword [esp + 4], xmm0
mov dword [ebp - 0x38], ecx
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40512e
mov edi, dword [ebp - 0x20]
xor ebx, ebx
mov eax, 0
test edi, edi
je 0x4050d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4052a6
call fcn.00449c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x18]
mov dword [edi], ebx
push edi
push ebx
push ebx
push 4
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
jne 0x405159
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40513b
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x2c]
mov ecx, esi
push edx
push eax
call fcn.00456d20
mov ebx, dword [esi]
mov eax, dword [ebp - 0x18]
jmp 0x40513f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
jmp 0x405234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405218
xor eax, eax
xor ebx, ebx
push edi
push eax
push ebx
push 4
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
test eax, eax
jne 0x405162
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x405162
mov ebx, dword [ebp - 0x3c]
jmp 0x4051cf
push ebx
push 4
mov edi, dword [ebp - 0x3c]
push edi
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x4051c5
lea eax, [edi + 1]
mov dword [ebp - 0x40], eax
cmp eax, 2
jb 0x405183
call fcn.00449c40
xor ebx, ebx
mov esi, 0
mov eax, dword [ebp - 0x30]
cmp dword [eax], edi
je 0x4051cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x40527a
cmp dword [ebp - 0x40], 2
jb 0x4051b8
mov eax, dword [ebp - 0x3c]
mov dword [ecx], eax
call fcn.00449c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
jmp 0x4051cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, edi
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x405202
mov eax, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 0x1000
jb 0x4051f8
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4052ad
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0045b9ca
add esp, 8
lea eax, [ebx + 1]
cmp eax, 2
jb 0x405218
call fcn.00449c40
push ebx
call fcn.00449c50
add esp, 4
mov ebx, dword [ebp - 0x38]
lea eax, [ebx + 1]
cmp eax, 2
jb 0x405231
call fcn.00449c40
push ebx
call fcn.00449c50
add esp, 4
mov edi, dword [ebp - 0x34]
lea eax, [edi + 1]
cmp eax, 2
jb 0x404ef4
call fcn.00449c40
push edi
call fcn.00449c50
add esp, 4
jmp 0x404ef4
call fcn.00449c40
mov eax, dword [ebp - 0x30]
push dword [eax]
call fcn.00449c50
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ecx], 0
jmp 0x404fd8
xor ebx, ebx
jmp 0x404f8a
call fcn.00449c40
mov eax, dword [ebp - 0x30]
push dword [eax]
call fcn.00449c50
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ecx], 0
jmp 0x4051a8
mov dword [ebp - 0x34], 0
jmp 0x40505d
xor edi, edi
jmp 0x4050cd
call fcn.00460d04
int3