Function at 0x415500
Capabilities:
Get session user name
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x964
mov eax, dword [0x554e0c]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x174], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0xdeb0
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], 0x400
call fcn.004bd990
mov eax, dword [eax]
mov edx, dword [ebx + 4]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415582
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415582
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x174]
rep stosd dword es:[edi], eax
mov eax, dword [0x547570]
lea ecx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x58], 3
mov dword [esp + 0x54], eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [0x547570]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.___HKCU_
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x415601
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x415601
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x415601
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.___HKCU_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x5485ec
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x415649
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x415649
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x415649
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x5485ec
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
lea ecx, [esp + 0x174]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4156bf
lea edx, [esp + 0x174]
shr edx, 0x10
jne 0x415681
xor eax, eax
lea ecx, [esp + 0x174]
mov ax, cx
lea ecx, [esp + 0x1c]
push eax
call fcn.00413ae0
jmp 0x4156bf
lea edx, [esp + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4156bf
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x4156bf
mov edi, dword [esp + 0x1c]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x174]
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 + 0x18]
push 0x34
push ecx
call fcn.004bd990
mov edx, dword [0x547570]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x30], edx
mov edx, dword [eax - 8]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.004059f0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.00405440
lea ecx, [esp + 0x30]
call fcn.00405700
mov ecx, dword [0x547570]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x38]
push eax
invalid