Function at 0x10052dac
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push 2
lea ecx, [ebp - 0x78]
call fcn.1001add3
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xa9ac70c3
mov dword [ebp - 0x20], 0
jmp 0x10052dec
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x10052e02
push dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.1001ae71
and dword [eax], 0
jmp 0x10052de5
push 0
lea ecx, [ebp - 0x78]
call fcn.1001ae71
mov dword [eax], 0x13
jmp 0x10052e2c
push 0
lea ecx, [ebp - 0x78]
call fcn.1001ae71
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x78]
call fcn.1001ae71
cmp dword [eax], 0xfffffff1
jge 0x10052e53
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10052e51
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x10052e14
mov dword [ebp - 0x18], 0
jmp 0x10052e63
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffe3
je 0x10053047
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x28], 0x5d840dfe
mov dword [ebp - 0x64], 9
mov dword [ebp - 0x34], 0xe6b87c26
mov dword [ebp - 0x48], 0x194e4064
push 2
lea ecx, [ebp - 0x84]
call fcn.1001add3
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
jmp 0x10052eb1
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x10052ecd
push dword [ebp - 0x24]
lea ecx, [ebp - 0x84]
call fcn.1001ae71
mov dword [eax], 1
jmp 0x10052eaa
mov dword [ebp - 0x14], 0xfffffff7
jmp 0x10052edd
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 7
jge 0x10053033
mov dword [ebp - 0x1c], 0xfffffffc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x6943
push 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x61f9
call fcn.10052b1a
add esp, 0x28
cmp dword [ebp - 0x1c], 0
jne 0x10052f2f
or eax, 0xffffffff
jne 0x10052f2f
and dword [ebp - 0x30], 0
jmp 0x10052f36
mov dword [ebp - 0x30], 1
push 0
lea ecx, [ebp - 0x78]
call fcn.1001ae71
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jne 0x10052f50
mov dword [ebp - 0x38], 1
jmp 0x10052f54
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x38], eax
jne 0x10052f65
mov dword [ebp - 0x3c], 1
jmp 0x10052f69
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
jle 0x10052f78
mov dword [ebp - 0x40], 1
jmp 0x10052f7c
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0x51f7
jne 0x10052f8e
mov dword [ebp - 0x68], 1
jmp 0x10052f92
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jl 0x10052fa9
mov dword [ebp - 0x44], 1
jmp 0x10052fad
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x48], eax
je 0x10052fc8
push 8
pop eax
test eax, eax
je 0x10052fc8
mov dword [ebp - 0x4c], 1
jmp 0x10052fcc
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
je 0x10052fdb
mov dword [ebp - 0x50], 1
jmp 0x10052fdf
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x50], eax
je 0x10052ff0
mov dword [ebp - 0x54], 1
jmp 0x10052ff4
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 3
jae 0x10053003
mov dword [ebp - 0x58], 1
jmp 0x10053007
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x58], eax
jne 0x10053018
mov dword [ebp - 0x5c], 1
jmp 0x1005301c
and dword [ebp - 0x5c], 0
push 1
lea ecx, [ebp - 0x84]
call fcn.1001ae71
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
jmp 0x10052ed6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1001ae55
jmp 0x10052e5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.1001ae55
mov eax, dword [ebp + 0xc]
dec eax
and eax, dword [ebp + 8]
je 0x10053071
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100523fe
pop ecx
pop ecx
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
jmp 0x10053077
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret