Function at 0x409cc4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x324
mov edi, ecx
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x328], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x318], eax
xor ebx, ebx
movzx eax, word [0x642064]
mov word [ebp - 0x2c4], ax
mov eax, dword [0x642060]
mov dword [ebp - 0x2c8], eax
lea esi, [ebp - 0x308]
mov dword [esi], ebx
mov dword [ebp - 0x30c], ebx
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409e5d
mov esi, dword [ebp - 0x308]
lea eax, [ebp - 0x300]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x409de1
lea eax, [ebp - 0x2c0]
mov dword [eax], 1
mov ecx, dword [ebp - 0x300]
mov edx, dword [ebp - 0x2fc]
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 2
xor ecx, ecx
push ecx
push ecx
push 0x10
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x409e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x409ed5
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x409e5b
lea esi, [ebp - 0x218]
mov ecx, esi
push 0
push 0xaa
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x15
push str.GetLastError_error__r_n
jmp 0x409e4b
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x409e5b
lea esi, [ebp - 0x218]
mov ecx, esi
push 0
push 0x8f
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x1d
push str.LookupPrivilegeValue_error__r_n
jmp 0x409e4b
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x409e5b
lea esi, [ebp - 0x218]
mov ecx, esi
push 0
push 0xa3
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x1e
push str.AdjustTokenPrivileges_error__r_n
push eax
call fcn.00403cc6
add esp, 0xc
mov ecx, esi
call fcn.00473790
xor ebx, ebx
mov esi, dword [ebp - 0x318]
mov edi, dword [ebp - 0x314]
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x409e7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30c]
test eax, eax
je 0x409e8b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x328]
cmp byte [eax + 0xb], 0
jns 0x409ea1
push dword [eax]
call fcn.00517bd6
add esp, 4
cmp byte [esi + 0xb], 0
jns 0x409eb1
push dword [esi]
call fcn.00517bd6
add esp, 4
cmp byte [edi + 0xb], 0
jns 0x409ec1
push dword [edi]
call fcn.00517bd6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x2c
lea eax, [ebp - 0x30c]
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x639dc0]
movups xmmword [esp + 4], xmm0
lea eax, [ebp - 0x2c8]
mov dword [esp], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409e5b
mov dword [ebp - 0x330], esp
push eax
sub esp, 0x30
mov esi, esp
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x32c], eax
mov bl, byte [edi + 0x28]
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x320], ecx
push dword [ebp - 0x314]
call fcn.00468aa8
lea ecx, [esi + 0x10]
mov dword [ebp - 0x310], ecx
push dword [ebp - 0x318]
call fcn.00468aa8
lea ecx, [esi + 4]
mov dword [ebp - 0x324], ecx
push dword [ebp - 0x328]
call fcn.00468aa8
mov eax, dword [edi]
mov dword [esi], eax
mov byte [esi + 0x28], bl
mov eax, dword [ebp - 0x32c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x31c]
mov dword [esi + 0x30], eax
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x409fd2
lea edi, [ebp - 0x218]
mov ecx, edi
push 0
push 0xd8
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x20
push str.begin_HigherSecurityRepairReg__r_n
push eax
call fcn.00403cc6
add esp, 0xc
mov ecx, edi
call fcn.00473790
cmp dword [esi + 0x2c], 0
je 0x40a07f
xor eax, eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2e0], eax
movzx ecx, byte [esi + 0x28]
shl ecx, 8
or ecx, 0x20019
cmp byte [esi + 0xf], 0
mov ebx, dword [ebp - 0x324]
mov edx, ebx
jns 0x40a020
mov edx, dword [esi + 4]
mov dword [ebp - 0x31c], esi
lea esi, [ebp - 0x2cc]
push esi
mov esi, dword [ebp - 0x31c]
push ecx
push eax
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a092
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a308
lea edi, [ebp - 0x218]
mov ecx, edi
push 0
push 0xf0
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x19
push str.RegOpenKeyEx_Read_error_r_n
jmp 0x40a2f8
xor ebx, ebx
mov esi, dword [ebp - 0x318]
mov edi, dword [ebp - 0x314]
jmp 0x40a429
lea eax, [ebp - 0x2d4]
xor edi, edi
lea ecx, [ebp - 0x2d8]
push eax
push edi
push edi
push edi
push ecx
push 1
push 4
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x40a0f6
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a308
lea edi, [ebp - 0x218]
mov ecx, edi
push 0
push 0x101
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x31
push str.GetSecurityInfo_OWNER_SECURITY_INFORMATION_error_
jmp 0x40a2f8
push edi
push edi
push edi
push dword [esi + 0x2c]
push 1
push 4
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x40a14d
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a308
lea edi, [ebp - 0x218]
mov ecx, edi
push 0
push 0x111
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x31
push str.SetSecurityInfo_OWNER_SECURITY_INFORMATION_error_
jmp 0x40a2f8
mov eax, dword [ebp - 0x2cc]
sub esp, 0x20
lea ecx, [ebp - 0x2d0]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x2e0]
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x639dd0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x40a1c8
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a308
lea edi, [ebp - 0x218]
mov ecx, edi
push 0
push 0x120
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x30
push str.GetSecurityInfo_DACL_SECURITY_INFORMATION_error_
jmp 0x40a2f8
xorps xmm0, xmm0
movups xmmword [ebp - 0x2f4], xmm0
xor eax, eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x300], 0xf003f
mov ecx, 2
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2f8], 3
mov dword [ebp - 0x2ec], 1
lea edi, [ebp - 0x218]
push 0x208
push eax
push edi
call fcn.006030b0
add esp, 0xc
lea eax, [ebp - 0x304]
mov dword [eax], 0x104
push eax
push edi
mov eax, 2
push eax
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x40a244
cmp word [ebp - 0x218], 0
je 0x40a244
xor eax, eax
inc eax
jmp 0x40a294
mov edi, str.Authenticated_Users
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a28f
lea ecx, [ebp - 0x2c0]
push 0
push 0x135
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x2b8]
push 0x20
push str.Cannot_acquire_current_user_name
push eax
call fcn.00403cc6
add esp, 0xc
lea ecx, [ebp - 0x2c0]
call fcn.00473790
mov eax, 2
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], edi
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x300]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x40a488
push 0
call fcn.00473360
add esp, 4
test al, al
je 0x40a308
lea edi, [ebp - 0x2c0]
mov ecx, edi
push 0
push 0x13f
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x2b8]
push 0x15
push str.SetEntriesInAcl_error
push eax
call fcn.00403cc6
add esp, 0xc
mov ecx, edi
call fcn.00473790
xor ebx, ebx
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2d8]
test eax, eax
je 0x40a399
xor esi, esi
push esi
push esi
push esi
push eax
push 1
push 4
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov edi, eax
push esi
call fcn.00473360
mov ecx, dword [ebp - 0x310]
add esp, 4
test al, al
je 0x40a399
lea esi, [ebp - 0x218]
mov ecx, esi
push 0
push 0x174
push str..._.._chrome_installer_tdsetup_tdsetup_ee_default_browser.cc
call fcn.004733f0
lea eax, [ebp - 0x210]
push 0x2b
push str.back_up_OWNER_SECURITY_INFORMATION_dwRes_
push eax
call fcn.00403cc6
add esp, 0xc
mov ecx, eax
push edi
call fcn.00453080
push 2
push 0x642246
push eax
call fcn.00403cc6
add esp, 0xc
mov ecx, esi
call fcn.00473790
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2d0]
test eax, eax
je 0x40a3b0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2d4]
test eax, eax
mov esi, dword [ebp - 0x318]
mov edi, dword [ebp - 0x314]
je 0x40a3d3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2dc]
test eax, eax
je 0x40a3ea
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2e0]
test eax, eax
je 0x40a401
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2d8]
test eax, eax
je 0x40a418
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x40a42f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x310]
mov edx, dword [ebp - 0x324]
cmp byte [edx + 0xb], 0
mov eax, dword [ebp - 0x320]
jns 0x40a457
push dword [edx]
call fcn.00517bd6
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x320]
add esp, 4
cmp byte [ecx + 0xb], 0
jns 0x40a46d
push dword [ecx]
call fcn.00517bd6
mov eax, dword [ebp - 0x320]
add esp, 4
cmp byte [eax + 0xb], 0
jns 0x40a47d
push dword [eax]
call fcn.00517bd6
add esp, 4
mov esp, dword [ebp - 0x330]
jmp 0x409e69
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x2cc]
sub esp, 0x1c
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [0x639dd0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x40a4c3
xor ebx, ebx
jmp 0x40a590
mov eax, dword [esi + 0x30]
cmp eax, 2
je 0x40a4fa
cmp eax, 1
je 0x40a51e
test eax, eax
jne 0x40a4bc
mov ecx, dword [ebp - 0x31c]
movzx eax, byte [ecx + 0x28]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x324]
push eax
push dword [ebp - 0x320]
push dword [ebp - 0x310]
call fcn.0040a5c9
jmp 0x40a514
movzx eax, byte [esi + 0x28]
mov ecx, dword [esi]
mov edx, ebx
push eax
push dword [ebp - 0x320]
push dword [ebp - 0x310]
call fcn.0040a65a
add esp, 0xc
test eax, eax
sete bl
jmp 0x40a590
movzx edi, byte [esi + 0x28]
mov ebx, dword [esi]
lea ecx, [ebp - 0x2c0]
call fcn.00485150
shl edi, 8
or edi, 0x20006
cmp byte [esi + 0xf], 0
mov eax, dword [ebp - 0x324]
jns 0x40a54d
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x2c0]
push edi
push eax
push ebx
call fcn.004852c0
test eax, eax
jne 0x40a583
mov eax, dword [ebp - 0x310]
cmp byte [eax + 0xb], 0
jns 0x40a573
mov eax, dword [ebp - 0x310]
mov eax, dword [eax]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.00485500
test eax, eax
je 0x40a5c5
mov bl, 1
lea ecx, [ebp - 0x2c0]
call fcn.00485370
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x2cc]
sub esp, 0x1c
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [0x639dd0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
jmp 0x40a30a
xor ebx, ebx
jmp 0x40a585