Function at 0x4037a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62dd70
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x721970]
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 fcn.004f2ef9
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.00403520
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
add ecx, 0xdc
call fcn.00406700
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
add ecx, 0xe0
call fcn.00406700
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call fcn.00406700
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 0x65982c
mov ecx, dword [ebp - 0x228]
add ecx, 0xdc
call fcn.00406ba0
mov edx, dword [ebp - 0x228]
mov dword [edx + 0xf0], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406700
mov byte [ebp - 4], 5
push 0x104
push 0x104
lea ecx, [ebp - 0x22c]
call fcn.00407830
push eax
push 0x65987c
push 0x65988c
push SysReAllocStringLen
call fcn.0040d510
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.00407e70
lea ecx, [ebp - 0x22c]
call fcn.00407940
movzx eax, al
test eax, eax
jne 0x40391a
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call fcn.00406b80
jmp 0x403b0e
xor edx, edx
mov word [ebp - 0x224], dx
push 0x200
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.0060f700
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.00408620
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 0x4039a9
mov dword [ebp - 0x23c], 0
jmp 0x403a21
mov eax, dword [ebp - 0x230]
push eax
call fcn.00610037
add esp, 4
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x3fffffff
jle 0x4039d9
mov dword [ebp - 0x240], 0
jmp 0x403a15
mov eax, dword [ebp - 0x234]
shl eax, 1
call fcn.00610b80
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.00407150
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.0041bf20
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.0040e470
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.00419160
push eax
lea ecx, [ebp - 0x238]
call fcn.004065a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call fcn.00418cc0
lea ecx, [ebp - 0x238]
call fcn.00407940
movzx eax, al
test eax, eax
jne 0x403ac3
mov ecx, dword [ebp - 0x238]
push ecx
push 0x6598bc
push 0x6598e8
mov edx, dword [ebp - 0x228]
add edx, 0xe4
push edx
call fcn.004076f0
add esp, 0x10
jmp 0x403ad9
push 0x6598f4
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call fcn.00406ba0
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
call fcn.004a7500
push eax
push str.TaskId
push 0x659930
push SysReAllocStringLen
call fcn.0040da50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.004068c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x22c]
call fcn.004068c0
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.0060f7c8
mov esp, ebp
pop ebp
ret