Function at 0x10047f59
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100480eb
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100480d0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 3
jmp 0x10047fcb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x100480ce
mov dword [ebp - 0x10], 0
jmp 0x10047fe7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10047ffa
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x78], 0xa4df6f97
jmp 0x10047fe0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x78]
cmp dword [ebp + eax - 0x78], ecx
jg 0x10048021
mov dword [ebp - 0x18], 1
jmp 0x10048025
and dword [ebp - 0x18], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + eax - 0x78]
mov dword [ecx], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
push 4
pop edx
shl edx, 0
mov edx, dword [ebp + edx - 0x78]
add edx, dword [ecx]
sub edx, dword [ebp - 0x18]
cmp edx, dword [ebp + eax - 0x78]
jg 0x10048063
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10048063
mov dword [ebp - 0x44], 1
jmp 0x10048067
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10020de6
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10020de6
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
ja 0x1004809c
mov dword [ebp - 0x20], 1
jmp 0x100480a0
and dword [ebp - 0x20], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x78]
cmp dword [ebp - 0x20], eax
jge 0x100480b8
mov dword [ebp - 0x24], 1
jmp 0x100480bc
and dword [ebp - 0x24], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + eax - 0x78], ecx
jmp 0x10047fc0
jmp 0x100480e6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100480e6
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x10048181
lea eax, [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x10048139
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10048137
push 0
push 0x19f1
push 0x1106
call fcn.1003411b
add esp, 0xc
jmp 0x10048181
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10048167
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x10048181
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x6c]
call fcn.10020de6
or dword [eax], 0xffffffff
jmp 0x1004815c
mov esp, ebp
pop ebp
ret