Function at 0x140020830
Capabilities:
Get common file path
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r13, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or esi, 0xffffffff
xor edi, edi
mov r12, rax
test rax, rax
jne 0x14002089f
mov esi, dword [0x14003d17c]
lea rdx, [rsp + 0x60]
mov ecx, esi
mov dword [rsp + 0x60], edi
lea r12, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r12]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rax
je 0x140020904
test byte [r10 + 0x1c], 1
je 0x140020904
mov eax, dword [r12]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400208e3
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x1400208e6
mov rcx, rdi
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], r13
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x5d
call fcn.140001370
lea rdx, str.Tap_and_send_receiving_data
mov rcx, r13
call fcn.14001fa08
mov rcx, qword [r13 + 0x128]
mov edx, 0x927c0
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x140034e68]
lea rax, [0x140033890]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
mov rax, qword [r13 + 0x128]
mov qword [rsp + 0x70], rax
call qword [sym.imp.ProximityServicePAL.dll_PAL_RegisterConsoleDisplayStateNotifications]
mov rcx, qword [r13 + 0x128]
lea r8, [rsp + 0x78]
xor eax, eax
mov ebx, 2
mov qword [rsp + 0x78], rax
mov edx, ebx
mov word [rbp - 0x80], ax
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [0x140034e68]
mov r14d, eax
test eax, eax
js 0x140020b8e
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x1400209eb
test byte [rcx + 0x1c], 4
je 0x1400209eb
mov eax, dword [r12]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400209b9
mov eax, edx
mov rdx, r15
sub rdx, rax
jmp 0x1400209bc
mov rdx, rdi
movzx eax, word [rsp + 0x78]
lea r9, [0x140035650]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140036cb8]
add r9, rdx
mov dword [rsp + 0x20], eax
mov edx, 0x5e
call fcn.140001304
mov rcx, qword [0x14003d048]
movzx edi, word [rsp + 0x78]
cmp di, bx
jbe 0x140020b0b
sub di, bx
xor ebx, ebx
movzx ecx, di
mov qword [rsp + 0x48], rbx
lea r10d, [rbx + 1]
mov eax, r10d
mul rcx
test rdx, rdx
je 0x140020a20
mov r14d, 0x80070216
jmp 0x140020af6
lea r9, [rsp + 0x48]
mov r8, rax
mov edx, r10d
call fcn.140004940
mov rbx, qword [rsp + 0x48]
mov r14d, eax
test eax, eax
js 0x140020af6
mov rcx, qword [r13 + 0x128]
mov r8, rbx
movzx edx, di
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [0x140034e68]
mov r14d, eax
test eax, eax
js 0x140020af6
mov rax, qword [rbx]
mov qword [rsp + 0x7a], rax
mov qword [r13 + 0x80], rax
test rax, rax
je 0x140020a9b
mov rcx, qword [r13 + 0x60]
xor r9d, r9d
xor r8d, r8d
mov byte [r13 + 0x136], 1
mov edx, 0x8064
call qword [sym.imp.USER32.dll_PostMessageW]
mov rax, qword [rsp + 0x7a]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp r10, rcx
je 0x140020af6
test byte [r10 + 0x1c], 4
je 0x140020af6
mov ecx, dword [r12]
inc ecx
lea edx, [rcx + rcx*4]
cmp edx, 0x1e1
ja 0x140020ad0
mov ecx, edx
mov rdx, r15
sub rdx, rcx
jmp 0x140020ad2
xor edx, edx
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, rdx
mov qword [rsp + 0x20], rax
mov edx, 0x5f
lea r8, [0x140036cb8]
call fcn.140001370
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [0x14003d048]
mov ebx, 2
xor edi, edi
test r14d, r14d
js 0x140020b8e
mov word [rsp + 0x44], bx
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140020b6f
test byte [rcx + 0x1c], 4
je 0x140020b6f
mov eax, dword [r12]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140020b44
mov eax, edx
mov rdx, r15
sub rdx, rax
jmp 0x140020b47
mov rdx, rdi
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, rdx
mov dword [rsp + 0x20], ebx
mov edx, 0x60
lea r8, [0x140036cb8]
call fcn.140001304
movzx ebx, word [rsp + 0x44]
mov rcx, qword [r13 + 0x128]
lea r8, [rsp + 0x44]
movzx edx, bx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x140034e68]
mov r14d, eax
mov qword [rsp + 0x50], rdi
test r14d, r14d
js 0x140020e93
mov ebx, 0x208
lea rcx, [rbp]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rbp + 0x210]
xor edx, edx
call sub.msvcrt.dll_memset
mov r14d, 0x104
lea rdx, [rbp + 0x210]
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
dec eax
cmp eax, 0x103
jbe 0x140020bea
mov r14d, 0x8000ffff
jmp 0x140020e93
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
call qword [sym.imp.msvcrt.dll_rand]
mov ebx, eax
call qword [sym.imp.msvcrt.dll_rand]
lea r9, [rbp + 0x210]
mov dword [rsp + 0x28], ebx
lea r8, str._sNfpOpcSendFile._i_i
mov dword [rsp + 0x20], eax
mov rdx, r14
lea rcx, [rbp]
call fcn.1400104f0
mov r14d, eax
test eax, eax
js 0x140020e93
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140020c94
test byte [r10 + 0x1c], 4
je 0x140020c94
mov eax, dword [r12]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140020c69
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140020c6c
mov rcx, rdi
lea rax, [rbp]
mov edx, 0x61
lea r9, [0x140035650]
mov qword [rsp + 0x20], rax
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
call fcn.140004a7c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140020cb0
mov qword [rsp + 0x50], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea rax, [rsp + 0x50]
mov edx, 0x1002
mov qword [rsp + 0x28], rax
lea rcx, [rbp]
mov r9d, 1
mov qword [rsp + 0x20], rdi
mov r8d, 0x4000100
call qword [sym.imp.api_ms_win_shcore_stream_l1_1_0.dll_SHCreateStreamOnFileEx]
mov r14d, eax
test eax, eax
js 0x140020e93
mov r10d, 1
mov ecx, 0x20000
mov eax, r10d
mov rbx, rdi
mul rcx
mov qword [rsp + 0x48], rbx
test rdx, rdx
je 0x140020d0e
mov r14d, 0x80070216
jmp 0x140020e8a
lea r9, [rsp + 0x48]
mov r8, rax
mov edx, r10d
call fcn.140004940
mov r14d, eax
test eax, eax
js 0x140020e85
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140020d80
test byte [r10 + 0x1c], 4
je 0x140020d80
mov eax, dword [r12]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140020d5e
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140020d61
mov rcx, rdi
lea r9, [0x140035650]
mov edx, 0x62
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
call fcn.1400012b0
mov rdx, qword [r13 + 0x128]
lea rcx, [rbp - 0x70]
and word [rbp - 0x48], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], edi
mov qword [rbp - 0x50], rdi
call fcn.140022bf0
mov rbx, qword [rsp + 0x48]
mov r14d, eax
test eax, eax
js 0x140020e7a
mov dword [rsp + 0x44], edi
cmp byte [rbp - 0x48], dil
jne 0x140020e18
lea r8, [rsp + 0x44]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140022954
mov r14d, eax
test eax, eax
js 0x140020e1e
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x140020e0d
add qword [r13 + 0x88], rdx
lea r9, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov r8d, edx
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov edx, dword [rsp + 0x44]
mov r14d, eax
test r14d, r14d
js 0x140020e1e
test edx, edx
je 0x140020e1e
jmp 0x140020db8
mov r14d, 1
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140020e7a
test byte [r10 + 0x1c], 4
je 0x140020e7a
mov eax, dword [r12]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140020e53
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140020e56
mov rcx, rdi
lea r9, [0x140035650]
mov dword [rsp + 0x20], r14d
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x63
call fcn.140001304
lea rcx, [rbp - 0x70]
call fcn.140022ddc
jmp 0x140020e8a
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
call qword [sym.imp.ProximityServicePAL.dll_PAL_UnregisterConsoleDisplayStateNotifications]
mov rcx, qword [r13 + 0x128]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140034e68]
mov rcx, r13
call fcn.14001fc04
test r14d, r14d
js 0x14002111e
mov rax, qword [r13 + 0x80]
xor ebx, ebx
mov qword [rsp + 0x58], rdi
cmp qword [r13 + 0x88], rax
jae 0x140020f32
mov qword [r13 + 0x88], rax
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140020f32
test byte [r10 + 0x1c], 4
je 0x140020f32
mov eax, dword [r12]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140020f11
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x140020f13
xor ecx, ecx
lea r9, [0x140035650]
mov edx, 0x64
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
call fcn.1400012b0
mov rcx, qword [r13 + 0x60]
xor r9d, r9d
mov edx, 0x7b3
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [r13 + 0xa0], rax
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov r14d, eax
test eax, eax
js 0x140021113
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
call fcn.14002feac
mov r14d, eax
test eax, eax
js 0x14002110e
xor al, al
mov qword [rsp + 0x48], rbx
mov rcx, r13
mov byte [rsp + 0x40], al
mov byte [rsp + 0x44], al
call fcn.140021654
mov rdi, qword [rsp + 0x58]
test al, al
jne 0x1400210d2
lea rcx, [rsp + 0x48]
call fcn.14002ae00
mov r14d, eax
test eax, eax
js 0x140021098
lea rdx, [0x140035918]
mov ecx, 0x40
call fcn.1400308a0
mov r15, rax
test rax, rax
je 0x140021017
and dword [r15 + 0x10], ebx
lea rax, [0x1400333a8]
and dword [r15 + 0x14], ebx
mov qword [r15], rax
mov dword [r15 + 8], 1
mov byte [r15 + 0xc], bl
and qword [r15 + 0x18], rbx
and qword [r15 + 0x20], rbx
and qword [r15 + 0x28], rbx
and dword [r15 + 0x30], ebx
and qword [r15 + 0x38], rbx
jmp 0x14002101a
xor r15d, r15d
mov rbx, qword [rsp + 0x48]
test r15, r15
mov eax, 0x8007000e
cmove r14d, eax
test r14d, r14d
js 0x140021068
mov r9d, 0x407
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov rdx, rbx
and dword [rsp + 0x28], 0
lea rax, str.Windows.SystemToast.NfpReceiveContent
mov rcx, r15
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call fcn.140012780
mov al, byte [rsp + 0x44]
mov byte [rsp + 0x40], al
test r15, r15
je 0x14002107d
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov al, byte [rsp + 0x40]
mov r15d, 0x1df
test al, al
je 0x14002109d
mov rcx, rdi
call fcn.140011f28
mov r14d, eax
jmp 0x1400210f7
mov rbx, qword [rsp + 0x48]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x1400210f7
test byte [r10 + 0x1c], 8
je 0x1400210f7
mov eax, dword [r12]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400210d6
mov eax, ecx
mov rcx, r15
sub rcx, rax
jmp 0x1400210d8
mov al, 1
jmp 0x140021087
xor ecx, ecx
lea r9, [0x140035650]
mov edx, 0x65
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
call fcn.1400012b0
test rbx, rbx
je 0x140021113
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
jmp 0x140021113
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
xor edi, edi
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140021179
test byte [rcx + 0x1c], 1
je 0x140021179
mov eax, dword [r12]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002114d
mov eax, edx
sub r15, rax
jmp 0x140021150
mov r15, rdi
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], r14d
mov edx, 0x66
mov qword [rsp + 0x20], r13
lea r8, [0x140036cb8]
call fcn.140001730
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140021195
mov qword [rsp + 0x50], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [r12], eax
cmp esi, eax
je 0x1400211b7
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400211b7
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, r14d
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400304d0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret