Function at 0x4d0040
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f9434
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebx + 4]
mov edx, 0x500ce4
push 1
mov byte [ebx + 0x38], 0
call fcn.004a1c70
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x2005
push eax
mov dword [ebx + 0x34], eax
call edi
push 0x20
push 0x20
push 0x1036
push dword [ebx + 0x34]
call edi
push 0
push 0
push 0x21
push 0x10
push 0x10
mov dword [ebx + 0x2c], 0
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
test eax, eax
je 0x4d00e5
mov dword [ebx + 0x30], eax
push dword [ebx + 0x30]
push 1
push 0x1003
push dword [ebx + 0x34]
call edi
mov edx, 0x3fc
lea ecx, [esp + 0xd0]
call fcn.004a1ed0
mov dword [esp + 0x68], 0xe
mov dword [esp + 0x7c], 0
mov dword [esp + 0x70], 0x48
mov eax, dword [eax]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push eax
push 0
push 0x1061
push dword [ebx + 0x34]
call edi
push dword [esp + 0xd0]
call fcn.004df97b
add esp, 4
mov dword [esp + 0xd8], 0
xorps xmm0, xmm0
movq qword [esp + 0xd0], xmm0
mov dword [esp + 0xd0], 0
push 8
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4d0186
mov byte [esp + 0x17], al
lea eax, [esp + 0x17]
push 0x51c2c8
push eax
call fcn.004ea58e
xor ecx, ecx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 3
mov word [eax], cx
mov dword [esp + 0x178], ecx
lea ecx, [esp + 0xd0]
push 0x100
mov dword [esp + 0x48], 0x100
call fcn.00412210
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, 0x100
cmp dword [esp + 0x44], edx
cmovb edx, dword [esp + 0x44]
xor ecx, ecx
mov word [esi + edx*2], cx
cmp word [esi], cx
je 0x4d01fc
inc ecx
cmp word [esi + ecx*2], 0
jne 0x4d01f4
mov dword [esp + 0xd4], ecx
test eax, eax
jne 0x4d021f
push str.Current_User
lea ecx, [esp + 0xd4]
call fcn.00412a60
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0xf
push eax
push 1
push 0x1061
push dword [ebx + 0x34]
mov dword [esp + 0x60], 0x80
mov dword [esp + 0x5c], 2
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], 1
call edi
push 0x89a
mov ecx, 0x5236a4
call fcn.00411750
test eax, eax
je 0x4d0276
push eax
lea ecx, [esp + 0xd4]
call fcn.00412850
jmp 0x4d0287
lea edx, [esp + 0xd0]
mov ecx, 0x89a
call fcn.0041e240
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
push 2
push 0x1061
push dword [ebx + 0x34]
mov dword [esp + 0x6c], 2
call edi
lea esi, [ebx + 8]
mov ecx, esi
call fcn.00498550
lea eax, [ebx + 0x20]
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.004d0f40
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [ebx + 0xc], ecx
jbe 0x4d0629
mov eax, dword [esi]
push 0x426170
push 0x4cfc00
push 2
mov edi, dword [eax + ecx*4]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe8], 7
mov dword [esp + 0x108], ecx
mov dword [esp + 0xf0], 0
mov dword [esp + 0x104], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0x110]
push 0x2c
push eax
mov dword [esp + 0x3c], edi
call fcn.004e05a2
mov byte [esp + 0x178], 1
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
push dword [eax + 0x10]
lea ecx, [eax + 4]
mov dword [esp + 0x34], ecx
push ecx
mov ecx, ebx
call fcn.004cfca0
push 0x410940
push fcn.00412560
push 2
mov dword [esp + 0x168], eax
lea eax, [esp + 0x74]
push 0xc
push eax
call fcn.004e05a2
xor ecx, ecx
mov byte [esp + 0x178], 2
lea eax, [esp + 0x68]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x110]
lea esp, [esp]
xor eax, eax
lea esi, [ebx - 0xc]
test ecx, ecx
mov ecx, esi
push edi
setne al
add eax, 0x80000001
push eax
call fcn.004cc2a0
cmp dword [ebx - 8], 0
mov dword [ebx + 0x14], 0
mov word [ebx + 0x1c], 0
je 0x4d0429
mov edi, dword [esi]
mov al, 0x46
mov dword [ebx + 0x14], 1
mov esi, 0x5022a1
mov byte [ebx + 0x1c], 1
nop
movzx edx, word [edi]
lea edi, [edi + 2]
lea ecx, [edx - 0x41]
cmp cx, 0x19
ja 0x4d03e5
lea ecx, [edx + 0x20]
movzx edx, cx
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x4d03ef
add al, 0x20
movzx eax, al
cmp dx, ax
jne 0x4d0426
mov al, byte [esi]
inc esi
test al, al
jne 0x4d03d0
mov eax, dword [esp + 0x30]
mov edx, dword [ebx]
mov ecx, dword [eax]
call fcn.00411840
test al, al
lea esi, [ebx - 0xc]
sete al
mov byte [esi + 0x29], al
test al, al
jne 0x4d0429
mov dword [esi + 0x20], 2
mov byte [esi + 0x28], al
jmp 0x4d0429
lea esi, [ebx - 0xc]
push dword [ebx + 0xc]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x20]
push ebx
mov dword [ebx + 0x10], eax
call fcn.004cfca0
mov dword [ebx + 0x18], eax
mov ecx, esi
lea eax, [esp + 0x38]
push eax
call fcn.004cfc20
mov edi, eax
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x178], 3
cmp edi, ecx
je 0x4d04bf
mov esi, dword [edi + 4]
cmp esi, dword [ecx + 8]
jbe 0x4d04a8
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df9b3
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4d060f
mov eax, dword [esp + 0x18]
push dword [eax]
call fcn.004df97b
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 8], esi
lea eax, [esi*2 + 2]
mov dword [ecx + 4], esi
push eax
push dword [edi]
push dword [ecx]
call fcn.004e4930
add esp, 0xc
mov byte [esp + 0x178], 2
push dword [esp + 0x38]
call fcn.004df97b
mov ecx, dword [esp + 0x24]
add esp, 4
add dword [esp + 0x18], 0xc
inc ecx
mov edi, dword [esp + 0x28]
add ebx, 0x2c
mov dword [esp + 0x20], ecx
cmp ecx, 2
jb 0x4d0390
xor ecx, ecx
lea eax, [esp + 0x124]
lea ebx, [ebx]
mov edx, dword [eax]
test edx, edx
je 0x4d0519
cmp edx, 2
je 0x4d0603
cmp dword [eax + 4], 0xffffffff
jne 0x4d05fb
inc ecx
add eax, 0x2c
cmp ecx, 2
jb 0x4d0500
or eax, 0xffffffff
mov dword [esp + 0xf8], eax
lea eax, [esp + 0xdc]
push eax
mov eax, dword [esp + 0x20]
push 0
push 0x104d
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea edi, [esp + 0x68]
xor esi, esi
mov ecx, dword [edi]
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x20]
inc esi
push 0
push 0x104c
mov dword [esp + 0xa0], 1
push dword [eax + 0x34]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xac], esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [edi + 0xc]
cmp esi, 2
jb 0x4d0550
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x104]
push eax
call fcn.004d0e90
push 0x410940
push 2
push 0xc
lea eax, [esp + 0x74]
mov byte [esp + 0x184], 1
push eax
call fcn.004e04d5
push 0x426170
push 2
push 0x2c
lea eax, [esp + 0x110]
mov byte [esp + 0x184], 0
push eax
call fcn.004e04d5
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0xc]
jae 0x4d0623
lea esi, [ebx + 8]
jmp 0x4d02d2
mov eax, dword [eax + 4]
jmp 0x4d0525
mov eax, dword [esp + 0x15c]
jmp 0x4d0525
push 0x51c2c8
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
call fcn.004ea58e
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push dword [ebx + 0x34]
call edi
test eax, eax
jle 0x4d0665
lea eax, [esp + 0xdc]
mov dword [esp + 0xec], 1
push eax
push 0
push 0x102b
push dword [ebx + 0x34]
mov dword [esp + 0xf8], 1
call edi
mov dword [esp + 0x178], 0xffffffff
push dword [esp + 0xd0]
call fcn.004df97b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret