Function at 0x431990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d498f
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xd4]
call fcn.0042fbd0
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 0
call fcn.004310a0
mov dword [ebp - 0xe4], vtable.ATL::CAccessToken.0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
push ecx
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 2
call fcn.00431410
sub esp, 0xc
lea ecx, [ebp - 0xe4]
call fcn.00431240
sub esp, 8
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xe4]
push eax
call fcn.004326c0
mov esi, dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test esi, esi
je 0x431a7f
cmp byte [ebp - 0x8c], 0
je 0x431a7f
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x431a7f
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
push 1
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x11c], 0
mov dword [ebp - 0x118], 2
mov dword [ebp - method.ATL::CDacl.virtual_0], vtable.ATL::CDacl.0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
push ecx
push 0x10000000
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x124]
call fcn.00430350
test al, al
jne 0x431af3
xor esi, esi
jmp 0x431c45
mov esi, dword [edi]
test esi, esi
je 0x431d00
push 0
lea ecx, [ebp - 0x124]
call fcn.00430140
push eax
push 0
push 0
push 4
push 4
push esi
call ebx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
je 0x431d00
lea ecx, [ebp - 0x74]
call fcn.0042fbd0
mov dword [ebp - 0x100], 0
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 2
mov dword [ebp - method.ATL::CDacl.virtual_0], vtable.ATL::CDacl.0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 5
mov ecx, dword [edi]
push eax
call fcn.00431540
push str.Everyone
lea ecx, [ebp - 0x74]
call fcn.0042fe90
test al, al
je 0x431bb9
push ecx
push 0x10000000
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x104]
call fcn.00430350
push ecx
push str.System
lea ecx, [ebp - 0x74]
call fcn.0042fe90
test al, al
je 0x431be0
push ecx
push 0x10000000
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x104]
call fcn.00430350
push ecx
push str.Administrators
lea ecx, [ebp - 0x74]
call fcn.0042fe90
test al, al
je 0x431c07
push ecx
push 0x10000000
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x104]
call fcn.00430350
mov esi, dword [edi]
test esi, esi
je 0x431c2d
push 0
lea ecx, [ebp - 0x104]
call fcn.00430140
push eax
push 0
push 0
push 4
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x104]
call fcn.004302e0
lea ecx, [ebp - 0x74]
call fcn.0042fca0
mov esi, 1
lea ecx, [ebp - 0x124]
call fcn.004302e0
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], vtable.ATL::CAccessToken.0
test ecx, ecx
je 0x431c86
test eax, eax
je 0x431c7c
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], 0
test eax, eax
je 0x431c9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe0], 0
push 4
push dword [ebp - 0xd8]
call fcn.004a5d24
push dword [ebp - 0x12c]
mov dword [ebp - 0xd8], 0
mov dword [ebp - method.ATL::CTokenGroups.virtual_0], vtable.ATL::CTokenGroups.0
call fcn.004afc2c
add esp, 0xc
lea ecx, [ebp - 0x15c]
call fcn.00432670
lea ecx, [ebp - 0xd4]
call fcn.0042fca0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x431c40
cmp eax, 3
je 0x431c40
xor esi, esi
jmp 0x431c45