Function at 0x407600
Capabilities:
Get session user name

Disassembly:
mov eax, 0x181c
call fcn.004c5440
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.0040c920
mov edx, dword [0x4e3a2c]
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.0048eb30
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 0x4077c6
lea ecx, [esp + 0x18]
push 0x34
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
mov esi, eax
mov eax, str.___s_
add esp, 8
test eax, eax
mov dword [esp + 0x10], edx
jne 0x4076a8
xor ebx, ebx
jmp 0x4076b5
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 0x40770b
cmp eax, ebx
jl 0x40770b
test eax, eax
je 0x40770b
push eax
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x40770b
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.00401200
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x407751
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407751
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407850
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407850
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x407850
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x18], edx
jg 0x4077e0
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x407839
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x4077ed
jne 0x407963
mov eax, dword [0x4d9540]
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 [0x4d9544]
cmp edx, eax
je 0x407835
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407835
mov edx, dword [esp + 0x18]
push edx
call fcn.004c5432
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.0048eb30
add esp, 8
mov ecx, ebp
push 0x4b1
call fcn.00406d90
push ecx
mov edx, esp
push 0x72
push edx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x138d
call fcn.00406d90
push ecx
mov eax, esp
push 0x73
push eax
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3ee
call fcn.00406d90
push ecx
mov ecx, esp
push 0x74
push ecx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3ef
call fcn.00406d90
push ecx
mov edx, esp
push 0x75
push edx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f2
call fcn.00406d90
push ecx
mov eax, esp
push 0x76
push eax
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f6
call fcn.00406d90
push ecx
mov ecx, esp
push 0x77
push ecx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 2
call fcn.00406d90
push ecx
mov edx, esp
push 0x78
push edx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 1
call fcn.00406d90
push ecx
mov eax, esp
push 0x79
push eax
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x406
call fcn.00406d90
lea ecx, [esp + 0x18]
push 0x7a
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
mov esi, eax
mov eax, 0x4d9b70
add esp, 4
test eax, eax
mov dword [esp + 0x18], esp
mov dword [esp + 0x14], edx
jne 0x40799e
xor ebx, ebx
jmp 0x4079ab
lea eax, [ebx + ebx + 0xe]
push eax
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x407997
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 0x4077f6
xor eax, eax
jmp 0x407839
push 0x4d9b70
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 0x407a01
cmp eax, ebx
jl 0x407a01
test eax, eax
je 0x407a01
push eax
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x407a01
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, 0x4d9b70
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.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
push 0x40d
mov ecx, ebp
call fcn.00406d90
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x407a53
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407a53
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
push ecx
mov ecx, esp
push 0x7b
push ecx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x40e
call fcn.00406d90
push ecx
mov edx, esp
push 0x7c
push edx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x40f
call fcn.00406d90
push ecx
mov eax, esp
push 0x7e
push eax
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f3
call fcn.00406d90
push ecx
mov ecx, esp
push 0xd6
push ecx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f7
call fcn.00406d90
push ecx
mov edx, esp
push 0xd7
push edx
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f5
call fcn.00406d90
push ecx
mov eax, esp
push 0xd8
push eax
call fcn.0048eb30
add esp, 8
mov ecx, ebp
push 0x3f0
call fcn.00406d90
mov ecx, dword [0x4d9540]
mov edx, 0x4d9b6c
test edx, edx
mov dword [esp + 0x14], ecx
je 0x407b5e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x407b5e
lea eax, [esi + esi + 0xe]
push eax
call fcn.004c58a5
add esp, 4
test eax, eax
je 0x407b5e
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 0x4d9b6c
push eax
mov dword [esp + 0x20], eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
lea ecx, [esp + 0x18]
push 0x2a94
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
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 0x407bde
cmp eax, ebx
jl 0x407bde
test eax, eax
je 0x407bde
push eax
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x407bde
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.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
push 0x410
mov ecx, ebp
call fcn.00406d90
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x407c34
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407c3a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
jmp 0x407c3a
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407c65
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407c65
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407c90
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407c90
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x181c
ret