Function at 0x4160f8
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x425124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc38], eax
xor eax, eax
mov dword [ebp - 0xc1c], edi
mov esi, ecx
mov dword [ebp - 0xc14], eax
push 0x1fc
mov edx, 0x402890
mov dword [ebp - 0xc10], eax
lea ecx, [ebp - 0x800]
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc0c], eax
mov ebx, eax
mov dword [ebp - 0xc2c], eax
mov word [ebp - 0x800], ax
mov word [ebp - 0x208], ax
call fcn.0041bee7
mov ecx, esi
call fcn.0041bf7c
test eax, eax
je 0x416598
mov ecx, esi
call fcn.00416d2c
test eax, eax
jne 0x416598
test esi, esi
je 0x4161e5
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x4161d3
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4161ac
add ecx, 2
inc ebx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x416199
mov edi, dword [ebp - 0xc1c]
push 2
pop eax
cmp bx, ax
jne 0x4161ce
push 0x1fc
mov edx, esi
lea ecx, [ebp - 0x800]
call fcn.0041bee7
jmp 0x4161e5
test bx, bx
jne 0x4161e5
push 0x1fc
mov edx, esi
lea ecx, [ebp - 0x800]
call fcn.0041bf47
xor ebx, ebx
lea eax, [ebp - 0xa08]
mov ecx, 0x103
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc24], ebx
mov dword [ebp - 0xc30], ecx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x416204
mov ecx, edi
call fcn.0041bf7c
test eax, eax
jne 0x416256
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0xa08]
push eax
push 2
pop edi
push edi
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x416250
push edi
call fcn.00420b3b
pop ecx
mov edx, 0x10001
mov ecx, eax
call fcn.0041b387
mov eax, 0x80004005
jmp 0x416644
lea edi, [ebp - 0xa08]
push 0x5c
pop eax
push eax
push ebx
push edi
call dword [0x42c174]
test eax, eax
je 0x416269
lea edi, [eax + 2]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc24]
push eax
push ebx
lea eax, [ebp - 0xc28]
push eax
push ebx
push edi
push esi
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
cmp eax, 1
je 0x4162b0
mov ecx, dword [ebp - 0xc28]
test ecx, ecx
je 0x4162b0
call fcn.0041c792
mov ebx, eax
mov dword [ebp - 0xc20], ebx
test ebx, ebx
jne 0x4162b9
push 0xe
call dword [0x42c084]
push 2
pop eax
push eax
jmp 0x416234
mov eax, dword [ebp - 0xc24]
lea ecx, [eax + eax]
call fcn.0041c792
mov dword [ebp - 0xc1c], eax
test eax, eax
jne 0x4162ff
push 0xe
call dword [0x42c084]
push 2
pop eax
push eax
call fcn.00420b3b
pop ecx
mov edx, 0x10001
mov ecx, eax
call fcn.0041b387
lea ecx, [ebp - 0xc20]
call fcn.0041c6ee
jmp 0x416246
lea ecx, [ebp - 0xc34]
push ecx
lea ecx, [ebp - 0xc24]
push ecx
push eax
lea eax, [ebp - 0xc28]
push eax
push ebx
push edi
push esi
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
jne 0x41634b
push 2
pop eax
push eax
call fcn.00420b3b
pop ecx
mov edx, 0x10001
mov ecx, eax
call fcn.0041b387
lea ecx, [ebp - 0xc20]
call fcn.0041c6ee
lea ecx, [ebp - 0xc1c]
jmp 0x4162f5
lea edx, [ebp - 0xc08]
mov ecx, ebx
call fcn.004166cc
test eax, eax
je 0x416322
lea ecx, [ebp - 0xc20]
call fcn.0041c6ee
lea ecx, [ebp - 0xc1c]
call fcn.0041c6ee
mov esi, 0xfe
lea edx, [ebp - 0xc08]
push esi
lea ecx, [ebp - 0x208]
call fcn.0041bee7
push esi
mov edx, 0x40217c
lea ecx, [ebp - 0x208]
call fcn.0041bf47
mov ebx, 0x4029e0
lea ecx, [ebp - 0x208]
push esi
mov edx, ebx
call fcn.0041bf47
lea eax, [ebp - 0xc10]
push eax
push 0x80000002
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
je 0x416415
lea eax, [ebp - 0x800]
mov ecx, 0x9dc
push eax
call fcn.0041b556
push eax
lea eax, [ebp - 0x408]
push 0x100
push eax
call fcn.0040719d
push 2
pop ebx
push ebx
call fcn.00420b3b
add esp, 0x14
lea edx, [ebp - 0x408]
mov ecx, eax
call fcn.0041c015
push esi
call dword [0x42c084]
push ebx
jmp 0x416234
lea eax, [ebp - 0xc18]
push eax
push 0x80000003
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegConnectRegistryW]
mov edi, eax
test edi, edi
je 0x416473
lea eax, [ebp - 0x800]
mov ecx, 0x9dc
push eax
call fcn.0041b556
push eax
lea eax, [ebp - 0x408]
push 0x100
push eax
call fcn.0040719d
push 2
pop ebx
push ebx
call fcn.00420b3b
add esp, 0x14
lea edx, [ebp - 0x408]
mov ecx, eax
call fcn.0041c015
push edi
jmp 0x416409
mov eax, dword [ebp - 0xc10]
test eax, eax
je 0x4164c8
lea ecx, [ebp - 0xc0c]
mov esi, 0x20019
push ecx
push esi
push 0
push ebx
push eax
call dword [0x42c150]
mov ecx, dword [ebp - 0xc0c]
mov edi, eax
test ecx, ecx
jne 0x4164d6
mov eax, dword [ebp - 0xc18]
test eax, eax
je 0x41656c
lea ecx, [ebp - 0xc0c]
push ecx
push esi
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [0x42c150]
mov edi, eax
mov ecx, dword [ebp - 0xc0c]
test ecx, ecx
je 0x41656c
lea eax, [ebp - 0xc2c]
push eax
call fcn.00416655
test eax, eax
jne 0x416550
push edi
call dword [0x42c084]
push 2
pop eax
push eax
call fcn.00420b3b
pop ecx
mov edx, 0x10001
mov ecx, eax
call fcn.0041b387
push dword [ebp - 0xc0c]
call dword [0x42c15c]
and dword [ebp - 0xc0c], 0
cmp dword [ebp - 0xc10], 0
je 0x416532
push dword [ebp - 0xc10]
call dword [0x42c15c]
and dword [ebp - 0xc10], 0
cmp dword [ebp - 0xc18], 0
je 0x416246
push dword [ebp - 0xc18]
call dword [0x42c15c]
jmp 0x416246
cmp dword [ebp - 0xc0c], 0
je 0x41656c
push dword [ebp - 0xc0c]
call dword [0x42c15c]
and dword [ebp - 0xc0c], 0
mov eax, dword [ebp - 0xc10]
test eax, eax
je 0x416584
push eax
call dword [0x42c15c]
and dword [ebp - 0xc10], 0
mov eax, dword [ebp - 0xc18]
test eax, eax
je 0x416634
push eax
jmp 0x41662e
lea eax, [ebp - 0xc14]
mov esi, 0x20019
push eax
push esi
push 0
mov ebx, 0x4029e0
push ebx
push 0x80000002
call dword [0x42c150]
mov edi, eax
test edi, edi
je 0x4165df
mov ecx, dword [ebp - 0xc14]
test ecx, ecx
jne 0x4165e9
lea eax, [ebp - 0xc14]
push eax
push esi
push ecx
push ebx
push 0x80000001
call dword [0x42c150]
mov edi, eax
mov ecx, dword [ebp - 0xc14]
test ecx, ecx
je 0x416634
lea eax, [ebp - 0xc2c]
push eax
call fcn.00416655
test eax, eax
jne 0x41661f
push edi
call dword [0x42c084]
push 2
call fcn.00420b3b
pop ecx
mov edx, 0x10001
mov ecx, eax
call fcn.0041b387
push dword [ebp - 0xc14]
jmp 0x416545
cmp dword [ebp - 0xc14], 0
je 0x416634
push dword [ebp - 0xc14]
call dword [0x42c15c]
mov ecx, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc2c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420460
leave
ret 8