Function at 0x100335ac
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100337eb
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x100337df
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10033655
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jl 0x100337dd
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10033695
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
cmp dword [eax], 0
je 0x10033695
and dword [ebp - 0x10], 0
jmp 0x1003369c
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x100336bf
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
cmp dword [eax], 0
je 0x100336bf
mov dword [ebp - 0x14], 1
jmp 0x100336c3
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
imul esi, dword [eax]
cmp esi, 0xfffffffb
jne 0x100336fa
mov dword [ebp - 0x1c], 1
jmp 0x100336fe
and dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
je 0x10033727
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
cmp dword [eax], 0
jne 0x10033727
and dword [ebp - 0x20], 0
jmp 0x1003372e
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 1
ja 0x1003373d
mov dword [ebp - 0x28], 1
jmp 0x10033741
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jge 0x10033754
mov dword [ebp - 0x2c], 1
jmp 0x10033758
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xffffffff
jg 0x10033776
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
cmp dword [eax], 0
jne 0x10033776
and dword [ebp - 0x30], 0
jmp 0x1003377d
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jne 0x1003379a
mov dword [ebp - 0x34], 1
jmp 0x1003379e
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
je 0x100337c0
or eax, 0xffffffff
je 0x100337c0
mov dword [ebp - 0x38], 1
jmp 0x100337c4
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001ab3d
mov ecx, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x1003364a
jmp 0x100337e9
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x10033808
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push 0
push 0x1305
push 0x15bf
call fcn.10033212
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret