Function at 0x140032be0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x340
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rbp, rcx
lea r13, vtable.StringStorage.0
mov qword [rsp + 0x30], r13
mov ecx, 8
call fcn.1400797fc
xor r12d, r12d
test rax, rax
je 0x140032c44
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
jmp 0x140032c47
mov rax, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.tvnviewer
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x58]
mov rbx, rdx
mov rdi, qword [rsp + 0x50]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140032c9e
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140032cb2
call fcn.1400796a8
mov rdx, r12
jmp 0x140032cb5
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140032cc0
call fcn.1400796a8
mov r8, rbx
lea rdx, str.tvnviewer
mov rcx, rdi
call fcn.14007ad70
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, qword [rsp + 0x58]
jbe 0x140032ce4
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140032cf8
call fcn.1400796a8
mov rdx, r12
jmp 0x140032cfb
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140032d06
call fcn.1400796a8
mov rax, qword [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032d29
call fcn.140078e60
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x38]
call fcn.140078e60
mov qword [rsp + 0x68], r13
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140032d60
lea rcx, [rsp + 0x70]
mov qword [rax], rcx
jmp 0x140032d63
mov rax, r12
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x90]
mov rbx, rdx
mov rdi, qword [rsp + 0x88]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140032dc9
call fcn.1400796a8
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140032ddd
call fcn.1400796a8
mov rdx, r12
jmp 0x140032de0
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140032deb
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov qword [rsp + 0xa0], r13
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140032e22
lea rcx, [rsp + 0xa8]
mov qword [rax], rcx
jmp 0x140032e25
mov rax, r12
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0xa8]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xc8]
mov rbx, rdx
mov rdi, qword [rsp + 0xc0]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140032e91
call fcn.1400796a8
mov rax, qword [rsp + 0xa8]
test rax, rax
jne 0x140032ea8
call fcn.1400796a8
mov rdx, r12
jmp 0x140032eab
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140032eb6
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x140032f5c
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa0]
mov rax, qword [rsp + 0xa0]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0xc0]
cmp rdi, qword [rsp + 0xc8]
jbe 0x140032f1a
call fcn.1400796a8
mov rax, qword [rsp + 0xa8]
test rax, rax
jne 0x140032f31
call fcn.1400796a8
mov rdx, r12
jmp 0x140032f34
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140032f3f
call fcn.1400796a8
lea r9, str.TightVNC
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x68]
call fcn.14002ecb0
jmp 0x140032f74
lea r8, str.TightVNC
lea rdx, [0x1400d3168]
lea rcx, [rsp + 0x68]
call fcn.14002ecb0
mov rbx, qword [rsp + 0x88]
cmp rbx, qword [rsp + 0x90]
jbe 0x140032f8b
call fcn.1400796a8
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140032f9f
call fcn.1400796a8
mov rdx, r12
jmp 0x140032fa2
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140032fad
call fcn.1400796a8
mov qword [rsp + 0x30], r13
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140032fcb
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
jmp 0x140032fce
mov rax, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x58]
mov rsi, rdx
mov rdi, qword [rsp + 0x50]
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rdi, rdx
jbe 0x140033025
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140033039
call fcn.1400796a8
mov rdx, r12
jmp 0x14003303c
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140033047
call fcn.1400796a8
mov r8, rsi
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, qword [rsp + 0x58]
jbe 0x14003307c
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140033090
call fcn.1400796a8
mov rdx, r12
jmp 0x140033093
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14003309e
call fcn.1400796a8
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400330bd
call fcn.140078e60
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x38]
call fcn.140078e60
lea rdx, vtable.AutoLock.0
mov qword [rsp + 0xe8], rdx
lea rbx, [rbp + 0x128]
mov qword [rsp + 0xf0], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdi, qword [rsp + 0x88]
cmp rdi, qword [rsp + 0x90]
jbe 0x140033115
call fcn.1400796a8
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140033129
call fcn.1400796a8
mov rdx, r12
jmp 0x14003312c
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140033137
call fcn.1400796a8
mov rax, qword [rbp + 0x18]
mov rdx, rdi
lea rcx, [rbp + 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14003315c
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, 0x130
call fcn.1400797fc
mov rdi, rax
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x1400331cf
mov rsi, qword [rbp + 0x38]
cmp rsi, qword [rbp + 0x40]
jbe 0x140033185
call fcn.1400796a8
mov r11, qword [rbp + 0x20]
test r11, r11
jne 0x140033198
call fcn.1400796a8
mov r11, r12
jmp 0x14003319b
mov r11, qword [r11]
cmp rsi, qword [r11 + 0x20]
jb 0x1400331a6
call fcn.1400796a8
movzx r9d, byte [rbp + 0xc]
lea rax, vtable.FileLogger.0
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov byte [rsp + 0x20], 0
lea r8, str.tvnviewer
mov rdx, rsi
call fcn.14006b590
jmp 0x1400331d2
mov rdi, r12
mov qword [rbp + 0x88], rdi
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rsp + 0xa0], r13
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x1400331fd
call fcn.140078e60
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], r12
mov rcx, qword [rsp + 0xa8]
call fcn.140078e60
nop
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14003323a
call fcn.140078e60
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
mov rcx, qword [rsp + 0x70]
call fcn.140078e60
mov rax, rdi
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140078e40
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret