Function at 0x485198
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x630], eax
mov dword [eax], edi
mov esi, ecx
lea eax, [ebp - 0x628]
mov dword [ebp - 0x624], edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x62c], edi
push eax
push 2
mov ebx, edi
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x628], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x48521d
call fcn.004c73cc
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41ded0
call fcn.004cfab1
push esi
push 0x515013a
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x48543e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x104
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.Secur32.dll_TranslateNameW]
test al, al
jne 0x485288
call fcn.004c73cc
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41deec
call fcn.004cfab1
push esi
push 0x52e013a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x48543e
push 0x185
push edi
call dword [sym.imp.WLDAP32.dll_Ordinal_145]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4852bc
call fcn.004c73cc
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41ddc8
call fcn.004cfab1
push esi
push 0x53f013a
jmp 0x485212
push 0x486
push edi
push edi
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_73]
add esp, 0x10
test eax, eax
je 0x48530a
lea ecx, [ebp - 0x624]
mov edx, eax
push ecx
push edi
push edi
mov ecx, ebx
call fcn.004e82f2
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41dddc
call fcn.004cfab1
push esi
push 0x547013a
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 0x624]
jmp 0x485426
push 0x41dea4
push 0x41df08
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.004444ad
lea eax, [ebp - 0x620]
push eax
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push 2
lea eax, [ebp - 0x61c]
push eax
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_208]
add esp, 0x2c
test eax, eax
je 0x485376
lea ecx, [ebp - 0x624]
mov edx, eax
push ecx
push edi
push edi
mov ecx, ebx
call fcn.004e82f2
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41de08
call fcn.004cfab1
push esi
push 0x566013a
jmp 0x4852f9
push dword [ebp - 0x620]
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_36]
pop ecx
pop ecx
test eax, eax
jne 0x4853b9
mov esi, dword [esi]
mov ecx, 0x888
call fcn.004cf8b9
push esi
push eax
call fcn.004c5942
push 0x406520
call fcn.004c5942
add esp, 0xc
mov esi, 0x80092004
push esi
push 0x56e013a
jmp 0x485212
push dword [ebp - 0x620]
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_26]
pop ecx
pop ecx
test eax, eax
jne 0x4853ec
call fcn.004c73cc
mov esi, eax
xor edx, edx
push edi
push esi
mov ecx, 0x41df14
call fcn.004cfab1
push esi
push 0x578013a
jmp 0x485212
push dword [esi]
push eax
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_140]
add esp, 0xc
mov dword [ebp - 0x62c], eax
test eax, eax
jne 0x485407
mov esi, edi
jmp 0x48543e
mov edx, dword [ebp - 0x630]
mov ecx, eax
call fcn.004850f1
mov esi, eax
test esi, esi
je 0x48543e
push esi
push 0x58d013a
call dword [sym.imp.certcli.dll_Ordinal_357]
test edi, edi
je 0x48543e
push edi
push 0x405204
call fcn.004c5942
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x620], 0
je 0x485454
push dword [ebp - 0x620]
call dword [sym.imp.WLDAP32.dll_Ordinal_41]
pop ecx
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x485466
push eax
call dword [sym.imp.WLDAP32.dll_Ordinal_224]
pop ecx
test ebx, ebx
je 0x485472
push ebx
call dword [sym.imp.WLDAP32.dll_Ordinal_13]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 8