Function at 0x1400369f0
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x20b0]
mov eax, 0x21b0
call fcn.1400789d0
sub rsp, rax
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov r14, r8
movzx r15d, dx
mov rdi, rcx
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp + 0x500]
movzx ebx, r9w
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x110]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x8f0]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov edx, 0x40
mov byte [rbp - 0x68], 0
lea rcx, [rbp + 0x90]
mov byte [rbp + 0x50], 0
mov byte [rbp + 0xd0], 0
mov byte [rbp + 0x90], 0
mov byte [rbp - 0x38], 0
mov byte [rbp - 0x48], 0
mov byte [rbp - 0x58], 0
call fcn.140026470
test eax, eax
jne 0x140036ac0
xor r9d, r9d
lea r8d, [rax + 0x20]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x90]
call fcn.1400272d0
test eax, eax
je 0x140036ac0
mov byte [rbp - 0x38], 0
jmp 0x140036ac6
cmp byte [rbp - 0x38], 0
jne 0x140036aee
mov edx, 0x40
lea rcx, [rbp - 0x38]
call fcn.140028720
test eax, eax
je 0x140036aee
lea r8, str.NoName
mov edx, 0x20
lea rcx, [rbp - 0x38]
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 0x140036b19
lea r8, str.RNBO_SPN_LOCAL
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x40
lea rcx, [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rcx, [rbp + 0x50]
cmp eax, 1
jne 0x140036b60
lea r8d, [rax + 0x3f]
lea rdx, [rbp + 0xd0]
call fcn.14004a720
lea rcx, [rbp + 0x50]
mov edx, 0x40
cmp eax, 0xffffffff
je 0x140036b65
lea r8, [rbp + 0xd0]
jmp 0x140036b6c
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 + 0x78], rax
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
lea edx, [rax + 0xc]
mov dword [rbp - 0x70], eax
call fcn.1400292e0
mov r9d, dword [rdi + 0x90]
lea r8, [0x140087774]
mov edx, recv
lea rcx, [rbp - 0x78]
call fcn.1400292e0
movzx r9d, bx
lea r8, [0x140087674]
mov edx, recv
lea rcx, [rbp + 0x20]
call fcn.1400292e0
mov r9d, dword [0x1400a72a4]
lea r8, [0x140087774]
mov edx, reloc.WSOCK32.dll_sendto
lea rcx, [rbp + 0x30]
call fcn.1400292e0
movzx r9d, word [rbp + 0x2100]
lea r8, [0x140087674]
mov edx, recv
lea rcx, [rbp + 0x10]
call fcn.1400292e0
mov r9d, dword [rdi + 0x1d4]
lea r8, [0x140087774]
mov edx, reloc.WSOCK32.dll_sendto
lea rcx, [rbp - 0x18]
call fcn.1400292e0
mov r9d, 0x2c6
lea r8, [0x140087674]
mov edx, recv
lea rcx, [rbp]
call fcn.1400292e0
xor r9d, r9d
lea r8, [0x140087674]
lea rcx, [rbp - 0x48]
lea edx, [r9 + 0xc]
call fcn.1400292e0
xor r9d, r9d
lea r8, [0x140087674]
lea rcx, [rbp - 0x58]
lea edx, [r9 + 0xc]
call fcn.1400292e0
cmp word [rdi + 0x1d8], 0
jne 0x140036ca6
xor r9d, r9d
lea r8, [0x140087774]
lea rcx, [rbp + 0x30]
lea edx, [r9 + 0x14]
call fcn.1400292e0
xor r9d, r9d
lea r8, [0x140087774]
lea rcx, [rbp - 0x18]
lea edx, [r9 + 0x14]
call fcn.1400292e0
cmp word [rdi + 0x1d8], 1
jne 0x140036cd1
cmp word [rdi + 0x1da], 0
jne 0x140036cd1
xor r9d, r9d
lea r8, [0x140087774]
lea rcx, [rbp - 0x18]
lea edx, [r9 + 0x14]
call fcn.1400292e0
lea rax, [rbp]
mov edx, recv
mov qword [rsp + 0x68], rax
lea r9, [rbp + 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x60], rax
lea r8, [rbp - 0x78]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x58], rax
lea rcx, [0x140087678]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.14004d500
mov rbx, rax
test rax, rax
jne 0x140036d60
mov eax, 0x4a
mov dword [rdi + 0x94], eax
jmp 0x140037023
mov r8, rbx
lea rcx, [rbp + 0x8f0]
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, [rbp - 0x68]
mov edx, 3
lea r9, [rbp + 0x8f0]
mov qword [rsp + 0x20], rax
lea r8, str.findFirstUnitEx
lea rcx, [0x140087688]
call fcn.14004d500
mov rbx, rax
test rax, rax
jne 0x140036db8
mov eax, 0x4a
jmp 0x140037023
mov r8, rbx
lea rcx, [rbp + 0x110]
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 + 0x110]
call fcn.14004d610
mov rbx, rax
test rax, rax
je 0x140036dae
mov r8, rax
lea rcx, [rbp + 0x110]
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 + 0x500]
mov rdx, rdi
lea rcx, [rbp + 0x110]
call fcn.140047060
test ax, ax
je 0x140036e33
mov rdx, rdi
movzx ecx, ax
call fcn.140037660
jmp 0x140037023
lea rcx, [rbp + 0x500]
mov qword [rsp + Ordinal_8618], rsi
call fcn.14004d950
mov rsi, rax
test rax, rax
je 0x140036eaf
xor eax, eax
lea rcx, [rbp + 0x10d0]
xor edx, edx
mov qword [rbp - 0x68], rax
mov r8d, 0x3e8
mov dword [rbp - 0x60], eax
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x500]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xce0]
lea rax, [rbp + 0x10d0]
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 0x140036eb9
mov eax, 0x42
jmp 0x14003701b
mov qword [rsp + 0x21a0], r12
lea rdx, [rbp + 0xce0]
xor r12d, r12d
lea r8, str.error
movzx ebx, r12w
mov ecx, r12d
mov byte [rbp + 0x10c7], bl
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140036f13
cmp rcx, 6
jne 0x140036ee0
lea rcx, [rbp + 0x10d0]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, eax
cmp ax, 0x46
je 0x140036f13
cmp ax, 0x50
jne 0x140037013
lea rax, [rbp + 0x18b0]
mov edx, 3
mov qword [rsp + 0x28], rax
lea r9, [rbp + reloc.mfc140.dll_Ordinal_5312]
lea rax, [rbp + 0x1ca0]
lea r8, [rbp + 0x500]
mov qword [rsp + 0x20], rax
lea rcx, [0x140087678]
call fcn.14004d9d0
test eax, eax
je 0x140036f58
mov eax, 0x42
jmp 0x140037013
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_5312]
mov byte [rbp + 0x18a7], r12b
mov byte [rbp + 0x2087], r12b
mov byte [rbp + 0x1c97], r12b
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea rcx, [rbp + 0x18b0]
mov word [rdi + 0x42], r15w
mov word [rdi + 0x44], ax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov word [rdi + 0x1d0], ax
movzx eax, word [rdi + 0x98]
dec ax
cmp ax, 1
ja 0x140036fb2
mov rdx, r14
mov rcx, rdi
call fcn.1400370a0
test bx, bx
je 0x140036fc3
cmp bx, 0x46
je 0x140036fc3
cmp bx, 0x50
jne 0x140037010
movsx esi, word [rdi + 0x70]
cmp esi, 9
jge 0x140036fd4
inc esi
mov word [rdi + 0x70], si
jmp 0x140036fdc
mov word [rdi + 0x70], r12w
mov esi, r12d
lea rcx, [rbp + 0x1ca0]
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 0x140037041
inc dword [rdi + 0x74]
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 + 0x21a0]
mov rsi, qword [rsp + 0x21a8]
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.140077b10
add rsp, 0x21b0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
cmp bx, 0x50
jne 0x140037010
mov eax, 0x46
jmp 0x140037013