Function at 0x402cd0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e26b5
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
push 0
mov ecx, dword [ebp - 0x228]
call sub.mfc120u.dll_Ordinal_992
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [eax], vtable.CCUHApp.0
mov ecx, dword [ebp - 0x228]
add ecx, 0xd0
call fcn.00402a40
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
add ecx, 0xdc
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
add ecx, 0xe0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x228]
mov byte [ecx + 0xe8], 0
mov edx, dword [ebp - 0x228]
mov byte [edx + 0xe9], 0
mov eax, dword [ebp - 0x228]
mov byte [eax + 0xf4], 0
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0xec], 0
push 0x4fd8cc
mov ecx, dword [ebp - 0x228]
add ecx, 0xdc
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
mov edx, dword [ebp - 0x228]
mov dword [edx + 0xf0], 0xffffffff
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 5
push 0x104
push 0x104
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
push 0x4fd91c
push 0x4fd92c
push SysReAllocString
call fcn.0040a390
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
movzx eax, al
test eax, eax
jne 0x402e53
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
jmp 0x40304e
xor edx, edx
mov word [ebp - 0x224], dx
push 0x200
push 0
lea eax, [ebp - 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x244], 0x101
mov dword [ebp - 0x250], 2
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x250]
push eax
call sub.Secur32.dll_GetUserNameExW
call fcn.00406200
mov dword [ebp - 0x258], eax
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
lea edx, [ebp - 0x224]
mov dword [ebp - 0x230], edx
cmp dword [ebp - 0x230], 0
jne 0x402ee2
mov dword [ebp - 0x23c], 0
jmp 0x402f5b
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x3fffffff
jle 0x402f13
mov dword [ebp - 0x240], 0
jmp 0x402f4f
mov eax, dword [ebp - 0x234]
shl eax, 1
call fcn.004e13c0
mov dword [ebp - 0x254], esp
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x234]
shl edx, 1
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.004060d0
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x23c], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00418610
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.0040b300
add esp, 0xc
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24c]
call fcn.004157f0
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call fcn.00415310
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
movzx eax, al
test eax, eax
jne 0x403000
mov ecx, dword [ebp - 0x238]
push ecx
push 0x4fd95c
push 0x4fd988
mov edx, dword [ebp - 0x228]
add edx, 0xe4
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 0x10
jmp 0x403017
push 0x4fd994
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push str.TaskId
push 0x4fd9d0
push SysReAllocString
call fcn.0040a8d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
lea esp, [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret