Function at 0x4493f0
Capabilities:
Check for sandbox username or hostname
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d8af
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4a0b70]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x47a0dc
mov ecx, dword [ebp + 8]
call fcn.00401ec0
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x200
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.0042e7f0
add esp, 0xc
mov dword [ebp - 0x234], 0x101
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4494fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4494fc
push str.GetCurrentUserSID__:_LookupAccountName___failed__1st_time_call.
lea ecx, [ebp - 0x238]
call fcn.00401ee0
mov dword [ebp - 4], 0
push 0x3e8
lea ecx, [ebp - 0x238]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00405260
xor eax, eax
jmp 0x44978e
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call fcn.0040ffbe
add esp, 4
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x449563
push str.GetCurrentUserSID__:failed_to_allocate_memory_for_pSid.
lea ecx, [ebp - 0x240]
call fcn.00401ee0
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x240]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00405260
xor eax, eax
jmp 0x44978e
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042e7f0
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ffbe
add esp, 4
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x449604
push str.GetCurrentUserSID__:failed_to_allocate_memory_for_wsDomainName.
lea ecx, [ebp - 0x248]
call fcn.00401ee0
mov dword [ebp - 4], 2
push 0
lea ecx, [ebp - 0x248]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405260
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0040ffb3
add esp, 4
xor eax, eax
jmp 0x44978e
mov ecx, dword [ebp - 0x20]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042e7f0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4496b8
push str.GetCurrentUserSID__:LookupAccountName___failed.
lea ecx, [ebp - 0x250]
call fcn.00401ee0
mov dword [ebp - 4], 3
push 0x3e8
lea eax, [ebp - 0x250]
push eax
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00405260
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040ffb3
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.0040ffb3
add esp, 4
xor eax, eax
jmp 0x44978e
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x449743
push str.GetCurrentUserSID__:ConvertSidToStringSid___failed.
lea ecx, [ebp - 0x25c]
call fcn.00401ee0
mov dword [ebp - 4], 4
push 0x3e8
lea ecx, [ebp - 0x25c]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00405260
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.0040ffb3
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.0040ffb3
add esp, 4
xor eax, eax
jmp 0x44978e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401ec0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x268]
push eax
call fcn.0040ffb3
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0040ffb3
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0042e0e3
mov esp, ebp
pop ebp
ret