Function at 0x4c4120
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bc85
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x248]
call fcn.0040eaa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0052d340
add esp, 0xc
mov dword [ebp - 0x24c], 0x104
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4c427a
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x248]
call fcn.00407fb0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
mov edx, 0x5c2198
cmovae ecx, dword [ebp - 0x248]
call fcn.00407fb0
lea ecx, [ebp - 0x230]
call fcn.0040e5d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
push 5
push str._temp
call fcn.00406f60
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x230]
call fcn.00407fb0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov edx, str.SYSTEM
cmovae ecx, dword [ebp - 0x230]
call fcn.00407fb0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4c425b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jmp 0x4c42c9
mov esi, dword [0x618d28]
test esi, esi
jne 0x4c42ab
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00409ee0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [0x618d28], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName_failed__d_
push 0x40
push 0x5c21dc
push 1
push esi
call fcn.0040a3e0
add esp, 0x18
call fcn.00427360
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c42e1
call eax
test al, al
jne 0x4c42f3
call fcn.00415660
push 0
push 0
push 0x465
push dword [eax]
call ebx
push 0x4c3f90
push 0x493e0
push 0x7d0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x270]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push eax
call edi
test eax, eax
je 0x4c44c6
nop word [eax + eax]
mov eax, dword [ebp - 0x26c]
sub eax, 0x464
je 0x4c4378
sub eax, 1
je 0x4c4361
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4c44af
call fcn.00427360
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c44af
call eax
jmp 0x4c44af
call fcn.0042aac0
dec eax
cmp eax, 4
ja case.default.0x4c4387
jmp dword [eax*4 + 0x4c4524]
mov ecx, 0x18eb4
jmp 0x4c440b
push 0
xor edx, edx
mov ecx, 0x18eb5
call fcn.00411230
add esp, 4
call fcn.00415660
mov byte [eax + 0x20b], 1
mov eax, dword [0x618d28]
test eax, eax
jne 0x4c43df
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00409ee0
mov byte [ebp - 4], 0
mov dword [0x618d28], eax
push 0x5c21f0
push 0x61
push str.ThreadInitEx.cpp
push 8
push eax
call fcn.0040a3e0
add esp, 0x14
jmp case.default.0x4c4387
mov ecx, 0x18eb6
jmp 0x4c440b
mov ecx, 0x18eb7
jmp 0x4c440b
mov ecx, 0x18eb8
push 0
xor edx, edx
call fcn.00411230
add esp, 4
lea ecx, [ebp - 0x230]
call fcn.0042af80
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4c4444
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404be0
mov esi, dword [0x61e774]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
test esi, esi
jne 0x4c44a2
push 0x2a8
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 5
push 0x2a8
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.00442c50
mov byte [ebp - 4], 0
mov dword [0x61e774], esi
push 0
push 0
push 0x466
push dword [esi]
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call edi
test eax, eax
jne 0x4c4330
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4c44eb
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret