Function at 0x35009610
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
push esi
push edi
push 4
push 0x1000
push 0x208
push 0
call dword [0x3502cd24]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push 4
push 0x1000
push 0x208
push 0
call dword [0x3502cd24]
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 8]
mov dword [eax], edx
push 0x104
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [0x350297b8]
test eax, eax
jne 0x35009696
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [0x350270a4]
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x350270a4]
or eax, 0xffffffff
jmp 0x35009968
push 0x208
push 0
lea ecx, [ebp - 0x278]
push ecx
call fcn.3500d070
add esp, 0xc
mov dword [ebp - 0x54], 0xfa
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x350096fc
mov ecx, dword [0x3501a340]
mov dword [ebp - 0x688], ecx
mov edx, dword [str.p.exe]
mov dword [ebp - 0x684], edx
mov eax, dword [0x3501a348]
mov dword [ebp - 0x680], eax
mov ecx, dword [0x3501a34c]
mov dword [ebp - 0x67c], ecx
jmp 0x3500981d
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x18], 0
jmp 0x35009716
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x278]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 0x32], ax
add dword [ebp - 0x14], 2
cmp word [ebp - 0x32], 0
jne 0x35009728
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x58]
sar ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x5c]
jae 0x3500976f
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebp + eax*2 - 0x278]
imul ecx, dword [ebp - 0x18]
xor edx, edx
add ecx, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
jmp 0x3500970d
push 0x208
push 0
lea eax, [ebp - 0x890]
push eax
call fcn.3500d070
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x890]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.35010812
add esp, 0xc
lea eax, [ebp - 0x890]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x688]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x3c]
mov cx, word [eax]
mov word [ebp - 0xa], cx
mov edx, dword [ebp - 0x30]
mov ax, word [ebp - 0xa]
mov word [edx], ax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x30]
add edx, 2
mov dword [ebp - 0x30], edx
cmp word [ebp - 0xa], 0
jne 0x350097b2
lea eax, [ebp - 0x688]
add eax, 0xfffffffe
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx + 2]
mov word [ebp - 0x34], dx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x34], 0
jne 0x350097eb
mov edi, dword [ebp - 0x20]
mov eax, dword [str.r.exe]
mov dword [edi], eax
mov ecx, dword [0x3501a354]
mov dword [edi + 4], ecx
mov edx, dword [0x3501a358]
mov dword [edi + 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x40]
mov cx, word [eax]
mov word [ebp - 0xc], cx
mov edx, dword [ebp - 0x24]
mov ax, word [ebp - 0xc]
mov word [edx], ax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
cmp word [ebp - 0xc], 0
jne 0x3500982f
lea eax, [ebp - 0x688]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x36], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x36], 0
jne 0x3500986b
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + 2]
mov word [ebp - 0x38], dx
add dword [ebp - 0x28], 2
cmp word [ebp - 0x38], 0
jne 0x35009898
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x3502cd44]
test eax, eax
jne 0x35009902
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x350270a4]
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [0x350270a4]
mov eax, 0xfffffffe
jmp 0x35009968
mov edx, dword [ebp - 4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x44]
mov ax, word [edx]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ebp - 0xe]
mov word [ecx], dx
mov eax, dword [ebp - 0x44]
add eax, 2
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x2c], ecx
cmp word [ebp - 0xe], 0
jne 0x35009914
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [0x350270a4]
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x350270a4]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret