Function at 0x140016160
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rbx, rdx
mov r13, rcx
cmp qword [rdx + 0x10], 0
jne 0x140016221
mov r8d, 0xa
lea rdx, str.mbupdatr.log
lea rcx, [0x14047aa08]
call fcn.14002bfd0
lea rsi, [0x14047aa00]
test rax, rax
mov rax, qword [0x14047aa00]
movsxd rcx, dword [rax + 4]
jne 0x140016203
add rcx, rsi
mov edx, 6
mov r12d, 2
cmp qword [rcx + 0x48], 0
cmovne edx, r12d
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.14000b300
jmp 0x140016553
add rcx, rsi
mov edx, 4
xor edi, edi
cmp qword [rcx + 0x48], rdi
cmovne edx, edi
xor r8d, r8d
call fcn.14000b300
jmp 0x140016553
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x38], xmm1
xor edi, edi
mov word [rsp + 0x28], di
mov r14d, 4
mov r8d, r14d
lea rdx, str.logs
lea rcx, [rsp + 0x28]
call fcn.14000d3a0
nop
lea r8, [rsp + 0x28]
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.140082ed0
nop
lea rcx, [rsp + 0x28]
call fcn.14000c340
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], di
lea r8d, [rdi + 0xc]
lea rdx, str.mbupdatr.log
lea rcx, [rsp + 0x48]
call fcn.14000d3a0
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.140082ed0
nop
lea rcx, [rsp + 0x48]
call fcn.14000c340
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
lea r8d, [rdi + 0xa]
lea rcx, [0x14047aa08]
call fcn.14002bfd0
lea ebx, [rdi + 6]
lea r12d, [rdi + 2]
lea rsi, [0x14047aa00]
test rax, rax
mov rax, qword [0x14047aa00]
movsxd rcx, dword [rax + 4]
jne 0x140016313
add rcx, rsi
mov edx, ebx
cmp qword [rcx + 0x48], rdi
cmovne edx, r12d
or edx, dword [rcx + 0x10]
jmp 0x140016321
add rcx, rsi
mov edx, r14d
cmp qword [rcx + 0x48], 0
cmovne edx, edi
xor r8d, r8d
call fcn.14000b300
mov rax, qword [0x14047aa00]
movsxd rcx, dword [rax + 4]
cmp dword [rcx + rsi + 0x10], 0
je 0x140016540
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov word [rsp + 0x20], di
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.140024ee0
nop
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r15d, eax
xorps xmm0, xmm0
movdqa xmm1, xmmword [0x1403e1a30]
test eax, eax
je 0x140016449
movdqu xmmword [rbp - 0x68], xmm0
movdqu xmmword [rbp - 0x68], xmm1
mov word [rbp - 0x78], di
mov r8d, ntohl
lea rdx, str.mbupdatr.log
lea rcx, [rbp - 0x78]
call fcn.14000d3a0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], di
mov r8d, r15d
mov rdx, qword [rbp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14000d3a0
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.140082ed0
mov r15, rax
lea rax, [rbp + 0x30]
cmp rax, r15
je 0x14001642b
lea rcx, [rbp + 0x30]
call fcn.14000c340
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
lea rcx, [rbp - 0x30]
call fcn.14000c340
nop
lea rcx, [rsp + 0x68]
call fcn.14000c340
nop
lea rcx, [rbp - 0x78]
jmp 0x1400164d6
movdqu xmmword [rbp - 0x48], xmm0
movdqu xmmword [rbp - 0x48], xmm1
mov word [rbp - 0x58], di
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Tempmbupdatr.log
lea rcx, [rbp - 0x58]
call fcn.14000d3a0
nop
lea rcx, [rbp + 0x10]
call fcn.140099b20
nop
lea r8, [rbp - 0x58]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140082ed0
mov r15, rax
lea rax, [rbp + 0x30]
cmp rax, r15
je 0x1400164be
lea rcx, [rbp + 0x30]
call fcn.14000c340
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
lea rcx, [rbp - 0x10]
call fcn.14000c340
nop
lea rcx, [rbp + 0x10]
call fcn.14000c340
nop
lea rcx, [rbp - 0x58]
call fcn.14000c340
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov r8d, 0xa
lea rcx, [0x14047aa08]
call fcn.14002bfd0
test rax, rax
mov rax, qword [0x14047aa00]
movsxd rcx, dword [rax + 4]
jne 0x14001651e
add rcx, rsi
cmp qword [rcx + 0x48], 0
cmovne ebx, r12d
or ebx, dword [rcx + 0x10]
mov edx, ebx
jmp 0x14001652d
add rcx, rsi
cmp qword [rcx + 0x48], 0
cmovne r14d, edi
mov edx, r14d
xor r8d, r8d
call fcn.14000b300
nop
lea rcx, [rbp + 0x50]
call fcn.140029670
nop
lea rcx, [rbp + 0x30]
call fcn.14000c340
nop
lea rcx, [rbp + 0x68]
call fcn.14000c340
mov eax, 1
xchg byte [0x14047a9f8], al
mov rax, r13
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret