Function at 0x4dc218
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x4dc221
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4dc753
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004dc08c
lea eax, [ebp - 0xc]
call fcn.004dc0fc
mov dword [ebp - 0x40], pe_nt_image_headers32
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x140]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x140]
mov ecx, pe_nt_image_headers32
call fcn.00404540
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x144]
call fcn.00409094
push dword [ebp - 0x144]
push 0x4dc76c
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x148]
call fcn.00409094
push dword [ebp - 0x148]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404650
push pe_nt_image_headers32
lea eax, [ebp - 0x140]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x140]
mov ecx, pe_nt_image_headers32
call fcn.00404540
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x18]
call fcn.004097c4
lea eax, [ebp - 0x24]
mov edx, dword [0x478e8c]
call fcn.00405b58
lea eax, [ebp - 0x28]
mov edx, dword [0x478e8c]
call fcn.00405b58
lea eax, [ebp - 0x2c]
mov edx, dword [0x478e8c]
call fcn.00405b58
lea eax, [ebp - 0x34]
mov edx, dword [0x478e8c]
call fcn.00405b58
test bl, bl
je 0x4dc349
lea eax, [ebp - 0x3c]
mov edx, dword [0x478e8c]
call fcn.00405b58
jmp 0x4dc49b
mov eax, dword [esi + 0x1c]
call fcn.0040587c
cmp eax, 0x10
jle 0x4dc360
mov eax, 0x6a
call fcn.004d8a8c
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408bb4
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408bb4
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004d0b24
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.004d0bbc
mov eax, dword [0x478f64]
call fcn.004795c0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x2c]
call fcn.0040587c
and eax, 0x80000007
jns 0x4dc3c0
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
jle 0x4dc3e1
mov eax, dword [ebp - 0x2c]
call fcn.0040587c
and eax, 0x80000007
jns 0x4dc3d8
dec eax
or eax, 0xfffffff8
inc eax
mov dl, 8
sub dl, al
mov byte [ebp - 0x35], dl
jmp 0x4dc3e5
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 0x2c]
call fcn.0040587c
xor edx, edx
mov dl, byte [ebp - 0x35]
add eax, edx
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x478e8c]
call fcn.00405a38
add esp, 4
push 0
mov eax, dword [ebp - 0x2c]
call fcn.0040587c
push eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.004cfccc
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.004d0c48
mov eax, dword [ebp - 0x30]
call fcn.0040587c
add eax, eax
inc eax
push eax
lea eax, [ebp - 0x3c]
mov ecx, 1
mov edx, dword [0x478e8c]
call fcn.00405a38
add esp, 4
mov eax, dword [ebp - 0x3c]
call fcn.0040587c
mov edi, eax
mov eax, dword [ebp - 0x34]
call fcn.0040587c
add eax, eax
cmp edi, eax
jge 0x4dc475
mov eax, 0x6a
call fcn.004d8a8c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
call fcn.004d0968
mov eax, dword [ebp - 0x3c]
call fcn.0040587c
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax - 1]
push eax
mov al, byte [ebp - 0x35]
call fcn.004d0930
pop edx
mov byte [edx], al
mov dl, 3
mov eax, dword [esi + 0x14]
call fcn.004da044
test bl, bl
je 0x4dc4b5
mov dl, 0x52
mov eax, dword [esi + 0x14]
call fcn.004da044
jmp 0x4dc4bf
mov dl, 0x51
mov eax, dword [esi + 0x14]
call fcn.004da044
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da044
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
call fcn.00404590
test eax, eax
jne 0x4dc4e2
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc4ea
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
mov eax, dword [ebp - 0x3c]
call fcn.0040587c
test eax, eax
jne 0x4dc515
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc51d
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 0x3c]
call fcn.0040587c
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da094
xor eax, eax
cmp dword [ebp - 4], 2
jne 0x4dc548
mov eax, 8
jmp 0x4dc553
cmp dword [ebp - 4], 4
jne 0x4dc553
mov eax, 0x10
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da0e0
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da094
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da0ec
mov eax, dword [ebp - 8]
call fcn.00404590
test eax, eax
jne 0x4dc587
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc58f
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 8]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
mov eax, dword [ebp - 0xc]
call fcn.00404590
test eax, eax
jne 0x4dc5b7
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc5bf
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 0xc]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
mov eax, dword [ebp - 0x10]
call fcn.00404590
test eax, eax
jne 0x4dc5e7
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc5ef
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 0x10]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
mov edx, 0x1000
mov eax, dword [esi + 0x14]
call fcn.004da094
mov eax, dword [ebp - 0x14]
call fcn.00404590
test eax, eax
jne 0x4dc624
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc62c
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 0x14]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
mov eax, dword [ebp - 0x18]
call fcn.00404590
test eax, eax
jne 0x4dc654
mov eax, dword [esi + 0x14]
call fcn.004da30c
jmp 0x4dc65c
mov eax, dword [esi + 0x14]
call fcn.004da300
mov eax, dword [ebp - 0x18]
call fcn.00404590
mov edx, eax
mov eax, dword [esi + 0x14]
call fcn.004da094
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da050
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da094
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da0ec
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.004da094
mov edx, ebx
mov eax, dword [esi + 0x14]
call fcn.004da0ec
mov edx, 0x10
mov eax, dword [esi + 0x14]
call fcn.004da094
mov edx, ebx
mov eax, dword [esi + 0x14]
call fcn.004da0ec
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x14]
call fcn.004da12c
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x14]
call fcn.004da100
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x14]
call fcn.004da12c
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x14]
call fcn.004da12c
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x14]
call fcn.004da12c
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
call fcn.004da12c
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x14]
call fcn.004da12c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc75a
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.004042e4
lea eax, [ebp - 0x3c]
mov edx, dword [0x478e8c]
call fcn.00405b58
lea eax, [ebp - 0x34]
mov edx, dword [0x478e8c]
mov ecx, 5
call fcn.00404f5c
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.004042e4
ret