Function at 0x40b370
Capabilities:
Get session user name

Disassembly:
mov eax, 0x181c
call fcn.00532230
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x3fa
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00410470
mov edx, dword [0x554e0c]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x830], edx
rep stosd dword es:[edi], eax
mov ecx, 0x3ff
lea edi, [esp + 0x834]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push 0x34
push ecx
mov dword [esp + 0x2c], 0x400
call fcn.004bd990
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40b536
lea ecx, [esp + 0x18]
push 0x34
push ecx
call fcn.004bd990
mov edx, dword [0x547570]
mov esi, eax
mov eax, str.___s_
add esp, 8
test eax, eax
mov dword [esp + 0x10], edx
jne 0x40b418
xor ebx, ebx
jmp 0x40b425
push str.___s_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov esi, dword [esi]
mov edi, dword [esi - 8]
lea eax, [ebx + edi]
cmp eax, edi
jl 0x40b47b
cmp eax, ebx
jl 0x40b47b
test eax, eax
je 0x40b47b
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x40b47b
lea eax, [edi + edi]
mov edi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + ebx]
mov esi, str.___s_
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, dword [esp + 0x18]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b4c1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b4c1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x830]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp + 4]
add esp, 0xc
lea ecx, [esp + 0x82c]
push ecx
push 0x4b2
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b5c0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b5c0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x40b5c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x18], edx
jg 0x40b550
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x40b5a9
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x40b55d
jne 0x40b6d3
mov eax, dword [0x547570]
mov dword [esp + 0x1c], eax
lea ecx, [ebx + ebx + 2]
mov edi, eax
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], ebx
mov eax, dword [0x547574]
cmp edx, eax
je 0x40b5a5
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b5a5
mov edx, dword [esp + 0x18]
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 4]
push 0x4b2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ecx
mov ecx, esp
push 0xda
push ecx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x4b1
call fcn.0040ab00
push ecx
mov edx, esp
push 0x72
push edx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x138d
call fcn.0040ab00
push ecx
mov eax, esp
push 0x73
push eax
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3ee
call fcn.0040ab00
push ecx
mov ecx, esp
push 0x74
push ecx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3ef
call fcn.0040ab00
push ecx
mov edx, esp
push 0x75
push edx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f2
call fcn.0040ab00
push ecx
mov eax, esp
push 0x76
push eax
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f6
call fcn.0040ab00
push ecx
mov ecx, esp
push 0x77
push ecx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 2
call fcn.0040ab00
push ecx
mov edx, esp
push 0x78
push edx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 1
call fcn.0040ab00
push ecx
mov eax, esp
push 0x79
push eax
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x406
call fcn.0040ab00
lea ecx, [esp + 0x18]
push 0x7a
push ecx
call fcn.004bd990
mov edx, dword [0x547570]
mov esi, eax
mov eax, 0x547e28
add esp, 4
test eax, eax
mov dword [esp + 0x18], esp
mov dword [esp + 0x14], edx
jne 0x40b70e
xor ebx, ebx
jmp 0x40b71b
lea eax, [ebx + ebx + 0xe]
push eax
call fcn.00532695
add esp, 4
test eax, eax
je 0x40b707
mov edx, dword [esp + 0x18]
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [esp + 0x1c], eax
jmp 0x40b566
xor eax, eax
jmp 0x40b5a9
push 0x547e28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov esi, dword [esi]
mov edi, dword [esi - 8]
lea eax, [ebx + edi]
cmp eax, edi
jl 0x40b771
cmp eax, ebx
jl 0x40b771
test eax, eax
je 0x40b771
push eax
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40b771
lea eax, [edi + edi]
mov edi, dword [esp + 0x14]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x14]
lea ecx, [ebx + ebx]
mov esi, 0x547e28
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
push 0x40d
mov ecx, ebp
call fcn.0040ab00
mov eax, dword [esp + 0x18]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b7c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b7c3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push ecx
mov ecx, esp
push 0x7b
push ecx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x40e
call fcn.0040ab00
push ecx
mov edx, esp
push 0x7c
push edx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x40f
call fcn.0040ab00
push ecx
mov eax, esp
push 0x7e
push eax
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f3
call fcn.0040ab00
push ecx
mov ecx, esp
push 0xd6
push ecx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f7
call fcn.0040ab00
push ecx
mov edx, esp
push 0xd7
push edx
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f5
call fcn.0040ab00
push ecx
mov eax, esp
push 0xd8
push eax
call fcn.004bd990
add esp, 8
mov ecx, ebp
push 0x3f0
call fcn.0040ab00
mov ecx, dword [0x547570]
mov edx, 0x547e24
test edx, edx
mov dword [esp + 0x14], ecx
je 0x40b8ce
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40b8ce
lea eax, [esi + esi + 0xe]
push eax
call fcn.00532695
add esp, 4
test eax, eax
je 0x40b8ce
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push 0x547e24
push eax
mov dword [esp + 0x20], eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea ecx, [esp + 0x18]
push 0x2a94
push ecx
call fcn.004bd990
mov edx, dword [0x547570]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax]
mov dword [esp + 0x18], edx
mov ebx, dword [ecx - 8]
add esp, 4
mov edi, dword [esi - 8]
mov dword [esp + 0x28], esp
mov dword [esp + 0x2c], ecx
lea eax, [edi + ebx]
cmp eax, edi
jl 0x40b94e
cmp eax, ebx
jl 0x40b94e
test eax, eax
je 0x40b94e
push eax
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40b94e
lea eax, [edi + edi]
mov edi, dword [esp + 0x14]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
lea ecx, [ebx + ebx]
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
push 0x410
mov ecx, ebp
call fcn.0040ab00
mov eax, dword [esp + 0x18]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b9a4
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40b9aa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
jmp 0x40b9aa
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b9d5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40b9d5
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ba00
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40ba00
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x181c
ret