Function at 0x40b3d0
Capabilities:
Get session user name

Disassembly:
mov eax, 0x181c
call fcn.00531740
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.00410620
mov edx, dword [0x553d9c]
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.004bc8d0
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 0x40b596
lea ecx, [esp + 0x18]
push 0x34
push ecx
call fcn.004bc8d0
mov edx, dword [0x546560]
mov esi, eax
mov eax, str.___s_
add esp, 8
test eax, eax
mov dword [esp + 0x10], edx
jne 0x40b478
xor ebx, ebx
jmp 0x40b485
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 0x40b4db
cmp eax, ebx
jl 0x40b4db
test eax, eax
je 0x40b4db
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x40b4db
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b521
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b521
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b620
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b620
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x40b620
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x18], edx
jg 0x40b5b0
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x40b609
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x40b5bd
jne 0x40b733
mov eax, dword [0x546560]
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 [0x546564]
cmp edx, eax
je 0x40b605
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b605
mov edx, dword [esp + 0x18]
push edx
call fcn.00531732
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.004bc8d0
add esp, 8
mov ecx, ebp
push 0x4b1
call fcn.0040ab60
push ecx
mov edx, esp
push 0x72
push edx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x138d
call fcn.0040ab60
push ecx
mov eax, esp
push 0x73
push eax
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3ee
call fcn.0040ab60
push ecx
mov ecx, esp
push 0x74
push ecx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3ef
call fcn.0040ab60
push ecx
mov edx, esp
push 0x75
push edx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f2
call fcn.0040ab60
push ecx
mov eax, esp
push 0x76
push eax
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f6
call fcn.0040ab60
push ecx
mov ecx, esp
push 0x77
push ecx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 2
call fcn.0040ab60
push ecx
mov edx, esp
push 0x78
push edx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 1
call fcn.0040ab60
push ecx
mov eax, esp
push 0x79
push eax
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x406
call fcn.0040ab60
lea ecx, [esp + 0x18]
push 0x7a
push ecx
call fcn.004bc8d0
mov edx, dword [0x546560]
mov esi, eax
mov eax, 0x546e18
add esp, 4
test eax, eax
mov dword [esp + 0x18], esp
mov dword [esp + 0x14], edx
jne 0x40b76e
xor ebx, ebx
jmp 0x40b77b
lea eax, [ebx + ebx + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x40b767
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 0x40b5c6
xor eax, eax
jmp 0x40b609
push 0x546e18
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 0x40b7d1
cmp eax, ebx
jl 0x40b7d1
test eax, eax
je 0x40b7d1
push eax
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40b7d1
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, 0x546e18
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.0040ab60
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b823
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b823
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
push ecx
mov ecx, esp
push 0x7b
push ecx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x40e
call fcn.0040ab60
push ecx
mov edx, esp
push 0x7c
push edx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x40f
call fcn.0040ab60
push ecx
mov eax, esp
push 0x7e
push eax
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f3
call fcn.0040ab60
push ecx
mov ecx, esp
push 0xd6
push ecx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f7
call fcn.0040ab60
push ecx
mov edx, esp
push 0xd7
push edx
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f5
call fcn.0040ab60
push ecx
mov eax, esp
push 0xd8
push eax
call fcn.004bc8d0
add esp, 8
mov ecx, ebp
push 0x3f0
call fcn.0040ab60
mov ecx, dword [0x546560]
mov edx, 0x546e14
test edx, edx
mov dword [esp + 0x14], ecx
je 0x40b92e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40b92e
lea eax, [esi + esi + 0xe]
push eax
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x40b92e
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 0x546e14
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.004bc8d0
mov edx, dword [0x546560]
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 0x40b9ae
cmp eax, ebx
jl 0x40b9ae
test eax, eax
je 0x40b9ae
push eax
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40b9ae
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.0040ab60
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40ba04
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40ba0a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
jmp 0x40ba0a
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ba35
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40ba35
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ba60
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40ba60
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x181c
ret