Function at 0x101b6290
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0
lea edi, [ebp - 0x20]
push edi
push 0
call sub.advapi32.dll_GetUserNameW
mov dword [ebp - 0x44], eax
call sub.KERNEL32.dll_GetLastError
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x5c], 0x10353314
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x10199130
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x10199330
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 2
lea esi, [ebp - 0x5c]
push esi
call fcn.1005f950
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x101b6320
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x101b6622
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov dword [ebp - 0x18], ecx
je 0x101b638a
xor ebx, ebx
cmp ecx, 0x40000000
setb al
jae 0x101b6643
mov bl, al
add ecx, ecx
add ebx, ebx
test ecx, ecx
mov dword [ebp - 0x14], ecx
js 0x101b664a
je 0x101b6391
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101b6376
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b6635
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push dword [ebp - 0x14]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x101b639b
jmp 0x101b6635
mov eax, 2
jmp 0x101b639b
mov eax, ebx
test eax, eax
je 0x101b6635
push edi
push eax
mov edi, eax
call sub.advapi32.dll_GetUserNameW
mov ebx, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x60], eax
je 0x101b647f
push dword [ebp - 0x20]
push edi
push esi
call fcn.1001b610
add esp, 0xc
cmp dword [ebp - 0x5c], 0
je 0x101b6651
movsd xmm0, qword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
xor ebx, ebx
mov dword [ebp - 0x3c], edi
movsd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x101b6420
movzx edx, byte [ebx]
and esi, 7
shl edi, 6
shl esi, 0x12
and edx, 0x3f
or edx, edi
or edx, esi
cmp edx, 0x110000
je 0x101b662c
nop word cs:[eax + eax]
nop
inc ebx
sub ebx, dword [ebp - 0x14]
test edx, edx
mov edx, eax
mov eax, ebx
jne 0x101b64fb
cmp ebx, ecx
je 0x101b64f5
mov edx, dword [ebp - 0x14]
mov eax, ebx
add ebx, edx
movzx edx, byte [ebx]
test dl, dl
jns 0x101b6410
movzx edi, byte [ebx + 1]
mov esi, edx
add ebx, 2
and esi, 0x1f
and edi, 0x3f
cmp dl, 0xdf
jbe 0x101b6476
mov dword [ebp - 0x1c], edi
movzx edi, byte [ebx]
inc ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
and dword [ebp - 0x10], 0x3f
shl edi, 6
add dword [ebp - 0x10], edi
cmp dl, 0xf0
mov edi, dword [ebp - 0x10]
jae 0x101b63e6
shl esi, 0xc
or edi, esi
mov edx, edi
jmp 0x101b6411
shl esi, 6
or esi, edi
mov edx, esi
jmp 0x101b6411
call sub.KERNEL32.dll_GetLastError
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x5c], 0x10353314
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x10199130
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x10199330
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 2
push esi
call fcn.1005f950
add esp, 4
cmp dword [ebp - 0x18], 0
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
je 0x101b6622
mov eax, dword [0x1035648c]
push edi
jmp 0x101b6619
xor edx, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], edx
jmp 0x101b6518
dec ecx
sub ecx, dword [ebp - 0x14]
test eax, eax
jne 0x101b658a
cmp ebx, ecx
je 0x101b6587
mov eax, dword [ebp - 0x14]
mov edi, ecx
add ecx, eax
movzx eax, byte [ecx - 1]
test al, al
jns 0x101b6510
movzx edx, byte [ecx - 2]
add ecx, 0xfffffffe
cmp dl, 0xc0
jge 0x101b6561
mov dword [ebp - 0x1c], edx
movzx edx, byte [ecx - 1]
dec ecx
cmp dl, 0xc0
mov dword [ebp - 0x10], edx
jge 0x101b6566
movzx esi, byte [ecx - 1]
dec ecx
and esi, 7
shl esi, 6
mov edx, esi
mov esi, dword [ebp - 0x10]
and esi, 0x3f
or esi, edx
mov dword [ebp - 0x10], esi
jmp 0x101b656a
and edx, 0x1f
jmp 0x101b6578
and dword [ebp - 0x10], 0xf
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
shl esi, 6
and edx, 0x3f
or edx, esi
shl edx, 6
and eax, 0x3f
or eax, edx
cmp eax, 0x110000
jne 0x101b6511
mov edi, dword [ebp - 0x38]
sub edi, dword [ebp - 0x40]
mov ebx, 1
je 0x101b65d6
setns al
js 0x101b6680
mov byte [ebp - 0x10], al
mov eax, dword [0x103564a0]
mov esi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101b65c3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b6670
mov dword [esi], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, eax
test eax, eax
je 0x101b6670
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x14]
push edi
push eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], 0
mov dword [eax], ebx
mov ebx, eax
mov dword [eax + 4], edi
mov dword [eax + 8], edi
je 0x101b660b
mov eax, dword [0x1035648c]
push dword [ebp - 0x3c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x2c], 0
je 0x101b6622
mov eax, dword [0x1035648c]
push dword [ebp - 0x14]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
xor edx, edx
jmp 0x101b64f9
push dword [ebp - 0x14]
push ebx
call fcn.1001a7e0
add esp, 8
ud2
call fcn.1001a7a0
ud2
call fcn.1001a7a0
ud2
push 0x10353344
push 0x103505b4
lea eax, [ebp - 0x30]
push eax
push 0x2b
push str.called__Result::unwrap____on_an__Err__value
call fcn.10026bb0
add esp, 0x14
jmp 0x101b6685
movzx eax, byte [ebp - 0x10]
push edi
push eax
call fcn.1001a7e0
add esp, 8
jmp 0x101b6685
call fcn.1001a7a0
ud2