Function at 0x5a57d5
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x68df50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.0059c0f0
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], edi
call fcn.0059c0f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 1
call fcn.0059c0f0
mov ebx, 2
mov ebp, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
mov dword [esi], ebp
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 3
call fcn.005a5661
test eax, eax
je 0x5a586c
mov ecx, dword [0x7dc08c]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
mov eax, dword [0x7dc084]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005a8704
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
setge dl
xor edx, ebp
jne 0x5a58d4
mov ecx, dword [0x7dc0ec]
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.005a8ca3
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
setge cl
xor ecx, ebp
jne 0x5a58d4
mov dx, word [esp + 0x24]
mov edi, ebp
mov word [esi + 0x109], dx
test edi, edi
jne 0x5a593a
lea ecx, [esp + 0x10]
mov word [esi + 0x109], 9
call fcn.0059c0f0
mov eax, dword [0x7dc084]
push ebp
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 4
call fcn.005a8704
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
setge dl
xor edx, ebp
jne 0x5a592a
mov eax, dword [0x7dc0ec]
push 9
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
mov edx, dword [0x7dc084]
push ebp
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.005a8704
mov edx, dword [eax]
xor edi, edi
xor ecx, ecx
cmp edx, edi
setge cl
xor ecx, ebp
jne 0x5a59e3
mov eax, dword [0x7dc080]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005a8d9c
mov ecx, dword [eax]
xor edx, edx
cmp ecx, edi
setge dl
xor edx, ebp
je 0x5a59a3
mov ecx, dword [0x7dc080]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.005a8e30
mov ecx, dword [0x7dc088]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.005a8d9c
mov edx, dword [eax]
xor ecx, ecx
cmp edx, edi
setge cl
xor ecx, ebp
je 0x5a59e3
mov eax, dword [0x7dc088]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.005a8e30
lea ecx, [esp + 0x10]
mov byte [esi + 0xe], 0
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 5
call fcn.005a5661
test eax, eax
je 0x5a5a1d
mov eax, dword [0x7dc098]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov byte [esi + 0xf], 0
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 6
call fcn.005a5661
test eax, eax
je 0x5a5a67
mov eax, dword [0x7dc09c]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov byte [esi + 0xc], 1
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 7
call fcn.005a5661
test eax, eax
je 0x5a5ab1
mov eax, dword [0x7dc090]
push ebp
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov byte [esi + 0xd], 1
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 8
call fcn.005a5661
test eax, eax
je 0x5a5afb
mov eax, dword [0x7dc094]
push ebp
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0xed], edi
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 9
call fcn.005a5661
test eax, eax
je 0x5a5b47
mov eax, dword [0x7dc0a0]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0xf5], ebx
call fcn.0059c0f0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x15c], 0xa
call fcn.005a5661
test eax, eax
je 0x5a5b9a
mov eax, dword [esi + 0xf5]
mov ecx, dword [0x7dc0a8]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0xf9], 0xa
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 0xb
call fcn.005a5661
test eax, eax
je 0x5a5bec
mov ecx, dword [0x7dc0ac]
push 0xa
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0x105], ebp
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 0xc
call fcn.005a5661
test eax, eax
je 0x5a5c39
mov ecx, dword [0x7dc0d8]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
mov eax, dword [0x7dc0f0]
lea ecx, [esp + 0x4c]
push eax
push 0x7c95fc
push ecx
call fcn.00674915
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
call fcn.005f760b
add esp, 4
test eax, eax
je 0x5a5cbf
lea ecx, [esp + 0x10]
mov dword [esi + 0x105], edi
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 0xd
call fcn.005a5661
test eax, eax
je 0x5a5caf
mov ecx, dword [0x7dc0d8]
push edi
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0xfd], ebp
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 0xe
call fcn.005a5661
test eax, eax
je 0x5a5cfc
mov ecx, dword [0x7dc0d0]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
lea ecx, [esp + 0x10]
mov dword [esi + 0x101], ebp
call fcn.0059c0f0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x15c], 0xf
call fcn.005a5661
test eax, eax
je 0x5a5d49
mov ecx, dword [0x7dc0d4]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005a8c5e
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], bl
call fcn.005a87fa
push edi
mov ecx, esi
call fcn.005a7218
mov ecx, 0x77
xor eax, eax
lea edi, [esi + 0x921]
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [esi + 0xafd]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.005a7676
mov ecx, esi
call fcn.005a7bb4
mov ecx, esi
call fcn.005a7c3d
mov ecx, esi
call fcn.005a7d7c
mov ecx, esi
call fcn.005a7eaf
push ebp
push 0
mov ecx, esi
call fcn.005a7f53
push 0
mov ecx, esi
call fcn.005a851f
lea ebp, [esi + 0xb3d]
mov ecx, 0x10
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xb7d]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x20
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.0059ce4a
add esp, 0xc
test eax, eax
jne 0x5a5e0b
push 0x7c95f4
push ebp
call fcn.006754be
add esp, 8
push ebp
mov ecx, esi
call fcn.005a85a1
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 1
call fcn.005a87fa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 0
call fcn.005a87fa
lea ecx, [esp + 0x18]
mov dword [esp + 0x158], 0xffffffff
call fcn.005a87fa
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret