Function at 0x45ad83
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
mov ebx, esi
mov dword [ebp - 0xc], esi
mov eax, edx
mov dword [ebp - 0x14], esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
cmp word [0x46b448], bx
jne 0x45b016
mov esi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 0xc]
push eax
push 0x46b048
push 8
mov dword [ebp - 0xc], 0x200
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x45ae18
call edi
cmp eax, 0x534
je 0x45ae18
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45ae18
test byte [eax + 0x1c], 1
je 0x45ae18
cmp byte [eax + 0x19], 2
jb 0x45ae18
call edi
push eax
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
mov edx, 0x40a3a4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4e
pop ecx
call fcn.00412c68
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x200
push eax
push 0x46b448
push 2
call esi
movzx esi, al
test al, al
jne 0x45ae74
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45b080
test byte [eax + 0x1c], 1
je 0x45b080
cmp byte [eax + 0x19], 2
jb 0x45b080
call edi
push eax
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x4f
jmp 0x45af7c
lea eax, [ebp - 0x14]
push eax
call fcn.0045b0aa
mov esi, eax
test esi, esi
jns 0x45aec2
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45b072
test byte [eax + 0x1c], 1
je 0x45b072
cmp byte [eax + 0x19], 2
jb 0x45b072
push esi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x50
jmp 0x45b067
cmp dword [0x46b044], ebx
je 0x45b010
call fcn.0045b1e5
test eax, eax
je 0x45b010
xor esi, esi
push esi
push esi
push 0x40a300
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x45af30
mov ecx, dword [0x46a020]
cmp ecx, 0x46a020
je 0x45b080
test byte [ecx + 0x1c], 1
je 0x45b080
cmp byte [ecx + 0x19], 2
jb 0x45b080
call edi
push eax
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x51
jmp 0x45af7c
push 0x40a318
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x45af8c
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45b080
test byte [eax + 0x1c], 1
je 0x45b080
cmp byte [eax + 0x19], 2
jb 0x45b080
call edi
push eax
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x52
mov edx, 0x40a3a4
pop ecx
call fcn.00412c68
jmp 0x45b080
lea ecx, [ebp - 0x10]
push ecx
push 0x18
push dword [ebp - 0x14]
push esi
call eax
test eax, eax
jne 0x45b010
mov eax, dword [ebp - 0x10]
cmp dword [eax], esi
je 0x45b010
mov dword [0x46b044], esi
push dword [eax + 0xc]
mov dword [0x46b040], 1
push dword [eax + 8]
push 0x402fc8
push 0x200
push 0x46b448
call fcn.004145d2
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x45b010
mov ecx, dword [0x46a020]
cmp ecx, 0x46a020
je 0x45b072
test byte [ecx + 0x1c], 1
je 0x45b072
cmp byte [ecx + 0x19], 2
jb 0x45b072
push esi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x53
jmp 0x45b067
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp word [0x46b048], 0
mov edx, eax
je 0x45b029
push 0x46b048
jmp 0x45b02e
push 0x46b448
call fcn.00414563
mov esi, eax
test esi, esi
jns 0x45b07d
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45b072
test byte [eax + 0x1c], 1
je 0x45b072
cmp byte [eax + 0x19], 2
jb 0x45b072
push esi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x54
mov edx, 0x40a3a4
pop ecx
call fcn.00412c68
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x45b080
xor esi, esi
inc esi
cmp dword [ebp - 0x10], 0
je 0x45b08f
push dword [ebp - 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test ebx, ebx
je 0x45b09a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc