Function at 0x40d580
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d871
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0041d690
add esp, 0xc
mov dword [ebp - 0x148], 0x100
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
test eax, eax
je 0x40d770
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
push 0xa
push 0x500000
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00415ec0
add esp, 0x10
mov dword [ebp - 0x144], str.Username:
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push 0x7e
push str.........SourceLauncherlauncher.cpp
push 1
mov ecx, eax
call fcn.00404c90
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0xf
jbe 0x40d6c4
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d887
push ecx
push edx
call fcn.0041b85f
add esp, 8
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x40d6fe
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d887
push ecx
push edx
call fcn.0041b85f
add esp, 8
mov eax, dword [str.SYSTEM]
lea ecx, [ebp - 0x110]
xorps xmm0, xmm0
mov dword [ebp - 0x118], 6
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x128], eax
lea edx, [ecx + 1]
mov ax, word [0x43f928]
mov dword [ebp - 0x114], 0xf
mov word [ebp - 0x124], ax
mov byte [ebp - 0x122], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d744
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea eax, [ebp - 0x128]
push 6
push eax
call fcn.00404160
add esp, 0x10
test eax, eax
sete al
jmp 0x40d86e
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 4], 2
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
push 0xa
push 0x500000
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00415ec0
add esp, 0x10
mov dword [ebp - 0x144], str.GetUserNameA_Failed
lea ecx, [ebp - 0x144]
push ecx
push 0x82
push str.........SourceLauncherlauncher.cpp
push 0
mov ecx, eax
call fcn.00404780
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x40d836
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d82c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d887
push ecx
push edx
call fcn.0041b85f
add esp, 8
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0xf
jbe 0x40d86c
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d862
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d887
push ecx
push edx
call fcn.0041b85f
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bbac
mov esp, ebp
pop ebp
ret
call fcn.0042072f
int3