Function at 0x1001c4e7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001c504
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x1001c6c3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
push 0
mov ecx, dword [ebp - 4]
call fcn.10016420
cmp dword [eax], 0
jne 0x1001c572
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1001c572
push 0
mov ecx, dword [ebp - 4]
call fcn.10016420
cmp dword [eax], 0
je 0x1001c58a
push 0
mov ecx, dword [ebp - 4]
call fcn.10016420
cmp dword [eax], 0
je 0x1001c58a
mov dword [ebp - 0x18], 1
jmp 0x1001c58e
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0x43585f1c
jne 0x1001c5a0
mov dword [ebp - 8], 1
jmp 0x1001c5a4
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
jne 0x1001c5bd
or eax, 0xffffffff
jne 0x1001c5bd
and dword [ebp - 0x1c], 0
jmp 0x1001c5c4
mov dword [ebp - 0x1c], 1
push 1
mov ecx, dword [ebp - 4]
call fcn.10016420
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jle 0x1001c5de
mov dword [ebp - 0x20], 1
jmp 0x1001c5e2
and dword [ebp - 0x20], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10016420
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov eax, dword [ebp - 0xc]
cmp ecx, dword [eax]
jl 0x1001c601
mov dword [ebp - 0x24], 1
jmp 0x1001c605
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jle 0x1001c614
mov dword [ebp - 0x28], 1
jmp 0x1001c618
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jne 0x1001c633
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1001c633
mov dword [ebp - 0x2c], 1
jmp 0x1001c637
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jle 0x1001c64a
mov dword [ebp - 0x30], 1
jmp 0x1001c64e
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0xffffffff
jne 0x1001c668
mov eax, 0xb66f
test eax, eax
je 0x1001c668
mov dword [ebp - 0x38], 1
jmp 0x1001c66c
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
imul eax, dword [ebp - 0x38]
test eax, eax
jne 0x1001c68e
push 0
mov ecx, dword [ebp - 4]
call fcn.10016420
cmp dword [eax], 0
jne 0x1001c68e
and dword [ebp - 0x3c], 0
jmp 0x1001c695
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
je 0x1001c6a8
mov dword [ebp - 0x14], 1
jmp 0x1001c6ac
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push 1
mov ecx, dword [ebp - 4]
call fcn.10016420
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret