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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4996e9
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], esp
mov eax, 0xff
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_GetUserNameA
cmp dword [ebp - 0x28], esp
je 0x499720
push 0x36
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x4b99e0
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x499755
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x499796
add eax, 8
push eax
push dword [ebp - 4]
push dword [ebp - 0x28]
call sub.ADVAPI32.dll_LookupAccountNameA
cmp dword [ebp - 0x2c], esp
je 0x4997be
push 0xba
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4997d1
push ebx
call fcn.004b784e
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49980a
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x4b99e0
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x499841
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x499882
add eax, 8
push eax
push dword [ebp - 4]
push dword [ebp - 0x28]
call sub.ADVAPI32.dll_LookupAccountNameA
cmp dword [ebp - 0x2c], esp
je 0x4998aa
push 0x195
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4998bd
push ebx
call fcn.004b784e
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00499afc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
call sub.ADVAPI32.dll_IsValidSid
cmp dword [ebp - 0x2c], esp
je 0x4998f6
push 0x213
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x49990d
mov eax, 0x5d3b7c
jmp 0x499ab5
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x49991e
add eax, 8
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp dword [ebp - 0x28], esp
je 0x499940
push 0x26d
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x499a94
mov dword [ebp - 0x28], esp
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_lstrlenW
cmp dword [ebp - 0x28], esp
je 0x499974
push 0x2de
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x499a94
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x5d3bf8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004020b4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x4b9450
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4999cc
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x5d3bf8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004020b4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x4b99e0
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x499a1b
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00499afc
mov dword [ebp - 0x28], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x5d3bf8]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
fld qword [ebp - 0x38]
call fcn.004020b4
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x3c], esp
je 0x499a70
push 0x402
push 0x4169c1f
push 6
call fcn.004b785a
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.00414868
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x499a90
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x499ab0
push eax
mov ebx, eax
call fcn.00401680
inc eax
push eax
call fcn.004b7848
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x499ab5
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x499ac6
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x499ad6
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x499ae6
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x499af6
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret