Function at 0x10005837
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100058bd
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10005898
push 0
push 0
push 0x1bad
push 0
push 0xbc7
push 0
push 0xb5
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x100058b8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x100058b8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x10005a47
lea eax, [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10005a11
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], 0x4e11
mov dword [ebp - 0x54], str.geqbalsum_fktbdgzqj_whmrmkszc_udqqcqxqz_rkxetundz_wuynqpjoc_vftxwxfiz_ktoh_yfkct_wkowwmina_avlt_qxyreaqy_kuez
cmp dword [ebp - 0x28], 0x512e
jle 0x10005990
and dword [ebp - 0x24], 0
jmp 0x10005917
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6386
jge 0x10005990
and dword [ebp - 0x18], 0
jmp 0x1000592d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6688
jge 0x1000598e
and dword [ebp - 0x1c], 0
jmp 0x10005943
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x58e4
jge 0x1000598c
and dword [ebp - 0x20], 0
jmp 0x10005959
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfd8
jge 0x1000598a
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
xor edx, dword [ebp - 0x20]
or edx, dword [ebp - 0x24]
mov eax, edx
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov ecx, 0x1007d358
call fcn.1000ef91
jmp 0x10005952
jmp 0x1000593c
jmp 0x10005926
jmp 0x10005910
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100059b2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x100059cf
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x50]
call fcn.1000f328
mov dword [eax], 0x386c
jmp 0x100059a7
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x4c35
jge 0x100059e9
mov edx, dword [ebp - 0x54]
mov ecx, 0x1007d358
call fcn.10011e0c
jmp 0x10005a05
or dword [ebp - 4], 0xffffffff
jmp 0x10005a0f
jmp 0x10005a47
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10005a47
push 0
push 0x6c9d
push 0
push 0x365f
push 0xb36
push 0x52f2
call fcn.10005e4c
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret