Function at 0x140036540
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c10]
mov eax, 0x1d10
call fcn.1400789d0
sub rsp, rax
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0x1bf0], rax
mov r14, r8
movzx r15d, dx
mov rdi, rcx
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1104]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x840]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov edx, 0x40
mov byte [rsp + 0x68], 0
lea rcx, [rbp - 0x20]
mov byte [rbp - 0x60], 0
mov byte [rbp + 0x20], 0
mov byte [rbp - 0x20], 0
mov byte [rsp + 0x78], 0
call fcn.140026470
test eax, eax
jne 0x1400365f9
xor r9d, r9d
lea r8d, [rax + 0x20]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x20]
call fcn.1400272d0
test eax, eax
je 0x1400365f9
mov byte [rsp + 0x78], 0
jmp 0x140036600
cmp byte [rsp + 0x78], 0
jne 0x14003662a
mov edx, 0x40
lea rcx, [rsp + 0x78]
call fcn.140028720
test eax, eax
je 0x14003662a
lea r8, str.NoName
mov edx, 0x20
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.RNBO_SPN_LOCAL
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140036652
lea r8, str.RNBO_SPN_LOCAL
lea edx, [rax + 0x40]
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x40
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rcx, [rbp - 0x60]
cmp eax, 1
jne 0x140036693
lea r8d, [rax + 0x3f]
lea rdx, [rbp + 0x20]
call fcn.14004a720
lea rcx, [rbp - 0x60]
mov edx, 0x40
cmp eax, 0xffffffff
je 0x140036698
lea r8, [rbp + 0x20]
jmp 0x14003669f
mov edx, 0x40
lea r8, str.NoName
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor eax, eax
movzx r9d, r15w
lea r8, [0x140087674]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea edx, [rax + 0xc]
mov dword [rsp + 0x60], eax
call fcn.1400292e0
mov r9d, dword [rdi + 0x90]
lea r8, [0x140087774]
mov edx, recv
lea rcx, [rsp + 0x58]
call fcn.1400292e0
lea rax, [rsp + 0x48]
mov edx, 5
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x58]
lea rax, [rbp - 0x20]
lea rcx, [0x140087678]
mov qword [rsp + 0x20], rax
call fcn.14004d500
mov rbx, rax
test rax, rax
jne 0x14003673d
mov eax, 0x4a
mov dword [rdi + 0x94], eax
jmp 0x1400369cd
mov r8, rbx
lea rcx, [rbp + 0x840]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rsp + 0x68]
mov edx, 3
lea r9, [rbp + 0x840]
mov qword [rsp + 0x20], rax
lea r8, str.findFirstUnit
lea rcx, [0x140087688]
call fcn.14004d500
mov rbx, rax
test rax, rax
jne 0x140036796
mov eax, 0x4a
jmp 0x1400369cd
mov r8, rbx
lea rcx, [rbp + 0x60]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x60]
call fcn.14004d610
mov rbx, rax
test rax, rax
je 0x14003678c
mov r8, rax
lea rcx, [rbp + 0x60]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rbp + reloc.mfc140.dll_Ordinal_1104]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140047060
test ax, ax
je 0x140036805
mov rdx, rdi
movzx ecx, ax
call fcn.140037660
jmp 0x1400369cd
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1104]
mov qword [rsp + 0x1d08], rsi
call fcn.14004d950
mov rsi, rax
test rax, rax
je 0x140036883
xor eax, eax
lea rcx, [rbp + 0x1020]
xor edx, edx
mov qword [rsp + 0x68], rax
mov r8d, 0x3e8
mov dword [rsp + 0x70], eax
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + reloc.mfc140.dll_Ordinal_1104]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xc30]
lea rax, [rbp + 0x1020]
mov edx, 3
lea rcx, [0x140087688]
mov qword [rsp + 0x20], rax
call fcn.14004d9d0
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bx, bx
je 0x14003688d
mov eax, 0x42
jmp 0x1400369c5
mov qword [rsp + Ordinal_7430], r12
lea rdx, [rbp + 0xc30]
xor r12d, r12d
lea r8, str.error
movzx ebx, r12w
mov ecx, r12d
mov byte [rbp + 0x1017], bl
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400368ed
cmp rcx, 6
jne 0x1400368c0
lea rcx, [rbp + 0x1020]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, eax
cmp ax, 0x46
jne 0x1400369bd
lea rax, [rbp + 0x1800]
mov edx, 2
lea r9, [rbp + 0x1410]
mov qword [rsp + 0x20], rax
lea r8, [rbp + reloc.mfc140.dll_Ordinal_1104]
lea rcx, [0x140087678]
call fcn.14004d9d0
test eax, eax
je 0x140036926
mov eax, 0x42
jmp 0x1400369bd
lea rcx, [rbp + 0x1410]
mov byte [rbp + 0x17f7], r12b
mov byte [rbp + 0x1be7], r12b
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov word [rdi + 0x44], ax
movzx eax, word [rdi + 0x98]
dec ax
mov word [rdi + 0x42], r15w
cmp ax, 1
ja 0x140036965
mov rdx, r14
mov rcx, rdi
call fcn.1400370a0
test bx, bx
je 0x140036970
cmp bx, 0x46
jne 0x1400369ba
movsx esi, word [rdi + 0x70]
cmp esi, 9
jge 0x140036981
inc esi
mov word [rdi + 0x70], si
jmp 0x140036989
mov word [rdi + 0x70], r12w
mov esi, r12d
lea rcx, [rbp + 0x1800]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd rcx, esi
mov dword [rdi + rcx*4 + 0x48], eax
test bx, bx
jne 0x1400369ba
lea rcx, [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rdi + 0x88], 0x78
movzx eax, bx
mov r12, qword [rsp + 0x1d00]
mov rsi, qword [rsp + 0x1d08]
mov rcx, qword [rbp + 0x1bf0]
xor rcx, rsp
call fcn.140077b10
add rsp, 0x1d10
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret