Function at 0x10030bc1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d7ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push esi
push edi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10031051
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x94], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10031020
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xa8], 0x219a
cmp dword [ebp - 0xa8], 0xb83
jge 0x10030c9c
xor eax, eax
inc eax
je 0x10030c9c
lea eax, [ebp - 0x1c]
push eax
push 0x1000771c
call fcn.100558cb
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x10030c4f
jmp 0x10030c9c
and dword [ebp - 0x18], 0
jmp 0x10030c5c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jge 0x10030c7d
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 0x10615d68]
push eax
push 0x1000771c
call fcn.100558cb
pop ecx
pop ecx
jmp 0x10030c55
mov eax, dword [ebp - 0x1c]
dec eax
push eax
push 0
call fcn.100309f1
pop ecx
pop ecx
push edx
push eax
push 0x1000829c
call fcn.10055aff
add esp, 0xc
jmp 0x10030c32
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xbc], 0x82a10aa4
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb0], 0xe0f4c9ff
mov dword [ebp - 0xc0], 4
mov dword [ebp - 0xa0], 0xfff9
mov dword [ebp - 0x88], 8
mov dword [ebp - 0x98], 0xfffffff9
mov dword [ebp - 0x90], 0xfffffffa
lea eax, [ebp - 0xb8]
push eax
push 0x3d43
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xc0]
push eax
push 1
lea eax, [ebp - 0x98]
push eax
push 0x701e
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.10030416
add esp, 0x34
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call fcn.10028d6f
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x10], 0x57e71f09
mov dword [ebp - 0x2c], 0x34f1d4b0
mov dword [ebp - 0x7c], 0xfffffffd
mov dword [ebp - 0x14], 0
jmp 0x10030d86
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10030d99
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x74], 0x25004286
jmp 0x10030d7f
mov dword [ebp - 0x14], 0
jmp 0x10030da9
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x10030dbf
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xf4], 0xfffffffa
jmp 0x10030da2
cmp dword [ebp - 0x10], 0
je 0x10030dd2
xor eax, eax
je 0x10030dd2
mov dword [ebp - 0x40], 1
jmp 0x10030dd6
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
jne 0x10030de7
or eax, 0xffffffff
jne 0x10030de7
and dword [ebp - 0x28], 0
jmp 0x10030dee
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
neg eax
cmp eax, 8
jae 0x10030e01
mov dword [ebp - 0x68], 1
jmp 0x10030e05
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0xa56c
je 0x10030e17
mov dword [ebp - 0x30], 1
jmp 0x10030e1b
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jl 0x10030e2f
mov dword [ebp - 0x50], 1
jmp 0x10030e33
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xbb35
je 0x10030e48
cmp dword [ebp - 0x10], 0
jne 0x10030e48
and dword [ebp - 0x38], 0
jmp 0x10030e4f
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jge 0x10030e63
mov dword [ebp - 0x60], 1
jmp 0x10030e67
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
add eax, 0x7af9ca3
cmp dword [ebp - 0x10], eax
jg 0x10030e7d
mov dword [ebp - 0x20], 1
jmp 0x10030e81
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
dec eax
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jge 0x10030e99
cmp dword [ebp - 0x10], 0
jne 0x10030e99
and dword [ebp - 0x58], 0
jmp 0x10030ea0
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x10]
jl 0x10030eb5
mov dword [ebp - 0x48], 1
jmp 0x10030eb9
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x48], eax
jl 0x10030eca
mov dword [ebp - 0x24], 1
jmp 0x10030ece
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp + eax - 0x74], ecx
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x34], eax
jne 0x10030efc
xor eax, eax
je 0x10030efc
mov dword [ebp - 0x3c], 1
jmp 0x10030f00
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x3c]
cmp eax, 0xfffffff9
jg 0x10030f15
mov dword [ebp - 0x44], 1
jmp 0x10030f19
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x44], eax
jg 0x10030f2a
mov dword [ebp - 0x4c], 1
jmp 0x10030f2e
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0x1404fc4b
jle 0x10030f40
mov dword [ebp - 0x54], 1
jmp 0x10030f44
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x54], eax
jle 0x10030f55
mov dword [ebp - 0x5c], 1
jmp 0x10030f59
and dword [ebp - 0x5c], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0xf4], ecx
lea ecx, [ebp - 0xcc]
call fcn.10020d13
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x6c]
xor edx, edx
push 2
pop ecx
div ecx
test edx, edx
jne 0x10030fec
lea eax, [ebp - 0x100]
push eax
call fcn.10026ce7
pop ecx
mov esi, eax
lea edi, [ebp - 0xe4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0xd8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call fcn.10028d8e
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x6c]
push eax
push 0x8b4
lea eax, [ebp - 0xd8]
push eax
push 1
lea eax, [ebp - 0xcc]
push eax
push 0x7438
push 1
lea eax, [ebp - 0x84]
push eax
call fcn.100302a9
add esp, 0x20
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.10032e46
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10032e41
jmp 0x10031074
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x1003104f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x10031074
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
push dword [ebp - 0xac]
push 0x3509
push 1
push 0x3253
call fcn.1002dad5
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret