Function at 0x140035b20
Capabilities:
Get common file path

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 - 0x2f8]
sub rsp, 0x3d0
mov rax, qword [0x140197080]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov r15, rcx
mov qword [rbp - 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rsi, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
movups xmmword [rbp - 0x58], xmm0
test eax, eax
js 0x140035bcb
lea rax, [rbp + 0xb0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r13w
jne 0x140035bb8
lea rdx, [rbp + 0xb0]
jmp 0x140035bd5
xor r8d, r8d
lea rdx, [0x140179df0]
lea rcx, [rbp - 0x58]
call fcn.14000a9cc
mov dword [rsp + 0x40], 0x1001
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x48]
sub rax, rcx
cmp rax, 0xc
jb 0x140036313
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova r9, qword [rbp - 0x58]
mov qword [rsp + 0x30], recvfrom
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x90]
call fcn.140036590
mov dword [rsp + 0x40], 0x3001
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rdx, qword [rbp + 0x90]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov r8, qword [rbp + 0xa0]
lea rcx, [rbp - 0x38]
call fcn.14000a9cc
mov ebx, 0xf001
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400207a0
test eax, eax
jne 0x140036319
lea rcx, [rbp - 0x38]
call fcn.140009258
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140035caf
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x80], xmm0
test rdi, rdi
je 0x140035ccb
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
test rdi, rdi
je 0x140035d14
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140035d0b
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140035d0b
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140035d10
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
cmp qword [rsp + 0x50], r13
je 0x140036244
mov rsi, qword [rbp - 0x80]
mov dword [rsp + 0x68], r13d
mov ecx, dword [rsi + 0x1c]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x140035d72
mov ecx, dword [rsi + 0x10]
mov eax, ecx
shr eax, 0xa
test al, 1
je 0x140035d64
cmp dword [rsi + 0x14], 0xa000000c
jne 0x140035d54
mov ecx, 4
mov dword [rsp + 0x68], ecx
jmp 0x140035dd3
cmp dword [rsi + 0x14], 0xa0000003
jne 0x140035d64
mov ecx, 0xa
jmp 0x140035d4e
shr ecx, 4
movzx ecx, cl
and ecx, 1
or ecx, 2
jmp 0x140035d4e
shr ecx, 1
test cl, 1
je 0x140035d7f
mov r9d, dword [rsi + 0x10]
jmp 0x140035d83
or r9d, 0xffffffff
lea rcx, [rsi + 0x20]
cmp qword [rsi + 0x38], 7
jbe 0x140035d92
mov rcx, qword [rsi + 0x20]
mov r8d, 3
lea rdx, [rbp - 0x10]
call fcn.14013b3a4
mov dword [rsp + 0x70], eax
lea r8, [rbp - 0x10]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140002e34
mov edx, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x68]
test edx, edx
je 0x140035dcf
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x140036302
mov rsi, qword [rbp - 0x80]
cmp ecx, 2
jne 0x140036152
lea rax, str..log
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 4
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x50]
call fcn.1400136c0
or ebx, 0x20
or ebx, 2
mov dword [rsp + 0x40], ebx
lea r12, [rsi + 0x20]
mov rcx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140035e22
mov rcx, qword [r12]
lea rax, [r12 + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
lea rdx, [rcx + rax*2]
mov rsi, rdx
call fcn.14001a9b0
jmp 0x140035e4c
cmp word [rax], 0x5c
je 0x140035e48
cmp word [rax], 0x2f
jne 0x140035e51
add rax, 2
cmp rax, rdx
jne 0x140035e3c
cmp rax, rdx
je 0x140035e6e
lea rcx, [rsi - 2]
cmp word [rcx], 0x5c
je 0x140035e6e
cmp word [rcx], 0x2f
je 0x140035e6e
mov rsi, rcx
cmp rax, rcx
jne 0x140035e56
mov r8d, Ordinal_60
mov rcx, rsi
call fcn.14013ba70
cmp rsi, rax
je 0x140035eb0
lea rdx, [rax - 2]
cmp rsi, rdx
je 0x140035eb0
cmp word [rdx], 0x2e
jne 0x140035ea7
lea rcx, [rdx - 2]
cmp rsi, rcx
jne 0x140035eb3
cmp word [rcx], 0x2e
jne 0x140035eb3
jmp 0x140035eb0
cmp word [rdx], 0x2e
je 0x140035eb3
sub rdx, 2
cmp rsi, rdx
jne 0x140035ea1
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], r13
mov r8, rax
lea rcx, [rbp + 0x10]
call fcn.14000a9cc
or ebx, 0x1c0
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rsi, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rsi, qword [rbp + 0x50]
mov r11, qword [rbp + 0x60]
lea r13, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova r13, qword [rbp + 0x10]
mov rax, qword [rbp + 0x20]
lea r14, [rax*2]
add r14, r13
mov rdx, r14
mov rcx, r13
call fcn.14001a9b0
mov qword [rsp + 0x60], rax
lea r11, [rsi + r11*2]
mov rdx, r11
mov rcx, rsi
call fcn.14001a9b0
mov r10, rax
mov rdx, rax
sub rdx, rsi
sar rdx, 1
mov r9, qword [rsp + 0x60]
mov r8, r9
sub r8, r13
sar r8, 1
mov rcx, r8
cmp rdx, r8
cmovb rcx, rdx
test rcx, rcx
je 0x140035f73
sub r13, rsi
movzx eax, word [rsi + r13]
cmp ax, word [rsi]
jne 0x14003614f
add rsi, 2
sub rcx, 1
jne 0x140035f5b
cmp r8, rdx
jb 0x14003614f
ja 0x14003614f
mov rdx, r9
mov si, 0x5c
cmp r9, r14
je 0x140035fa2
cmp word [rdx], si
je 0x140035f99
cmp word [rdx], 0x2f
jne 0x140035fa2
add rdx, 2
cmp rdx, r14
jne 0x140035f8e
mov r8, r10
cmp r10, r11
je 0x140035fc0
cmp word [r8], si
je 0x140035fb7
cmp word [r8], 0x2f
jne 0x140035fc0
add r8, 2
cmp r8, r11
jne 0x140035faa
xor r13d, r13d
mov ecx, r13d
cmp r10, r8
setne cl
mov eax, r13d
cmp r9, rdx
setne al
cmp eax, ecx
jne 0x140036152
jmp 0x140036033
test ecx, ecx
jne 0x140036152
cmp word [rdx], si
je 0x140035ff5
cmp word [rdx], 0x2f
mov r9b, r13b
jne 0x140035ff8
mov r9b, 1
cmp word [r8], si
je 0x140036008
cmp word [r8], 0x2f
mov ecx, r13d
jne 0x14003600d
mov ecx, 1
movzx eax, r9b
cmp ecx, eax
jne 0x140036152
test r9b, r9b
jne 0x140036083
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x140036152
add rdx, 2
add r8, 2
mov ecx, r13d
cmp r8, r11
sete cl
mov eax, r13d
cmp rdx, r14
sete al
sub ecx, eax
cmp rdx, r14
jne 0x140035fdf
test ecx, ecx
jne 0x140036152
cmp qword [r12 + 0x18], 7
jbe 0x140036060
mov r12, qword [r12]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
lea rdx, [r12 + rax*2]
mov r11, rdx
mov rcx, r12
call fcn.14001a9b0
jmp 0x1400360b5
cmp word [rdx], si
je 0x140036083
cmp word [rdx], 0x2f
jne 0x14003609b
add rdx, 2
cmp rdx, r14
jne 0x140036078
jmp 0x14003609b
cmp word [r8], si
je 0x14003609b
cmp word [r8], 0x2f
jne 0x140036033
add r8, 2
cmp r8, r11
jne 0x14003608e
jmp 0x140036033
cmp word [rax], si
je 0x1400360b1
cmp word [rax], 0x2f
jne 0x1400360ba
add rax, 2
cmp rax, rdx
jne 0x1400360a6
cmp rax, rdx
je 0x1400360d6
lea rcx, [r11 - 2]
cmp word [rcx], si
je 0x1400360d6
cmp word [rcx], 0x2f
je 0x1400360d6
mov r11, rcx
cmp rax, rcx
jne 0x1400360bf
sub rdx, r11
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], r13
mov r8, rdx
mov rdx, r11
lea rcx, [rbp + 0x30]
call fcn.14000a9cc
or ebx, 0xe00
or ebx, 8
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.14001ad94
or ebx, 0x10
mov dword [rsp + 0x40], ebx
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140036129
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
mov rcx, rax
call fcn.140018f0c
cmp rax, 0xffffffffffffffff
je 0x140036152
mov sil, 1
jmp 0x140036155
xor r13d, r13d
mov sil, r13b
test bl, 0x10
je 0x1400361b5
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x14003619f
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003619a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400362fb
call fcn.140139f14
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x70], r13b
test bl, 8
je 0x1400361cb
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x30]
call fcn.140009258
nop
test bl, 4
je 0x1400361e1
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x10]
call fcn.140009258
nop
test bl, 2
je 0x1400361f6
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x50]
call fcn.140009258
test sil, sil
je 0x14003622a
mov r8, qword [rbp - 0x80]
add r8, 0x20
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x14003621f
mov rdx, r8
mov rcx, rax
call fcn.1400078e0
add qword [r15 + 8], 0x20
jmp 0x14003622a
mov rdx, rax
mov rcx, r15
call fcn.1400368b8
lea rcx, [rbp - 0x80]
call fcn.14001b160
mov rsi, qword [rbp - 0x80]
test rsi, rsi
jne 0x140035d23
or rsi, 0xffffffffffffffff
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003627e
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x140036279
mov rbx, qword [rbp - 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140036279
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400362b2
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x1400362b2
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400362b2
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x90]
call fcn.140009258
nop
lea rcx, [rbp - 0x58]
call fcn.140009258
mov rax, r15
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140139c70
lea r11, [rsp + 0x3d0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rsi + 0x20]
lea rcx, str.directory_entry::status
call fcn.140002d80
nop
call fcn.140002144
nop
lea r8, [rbp - 0x38]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140002d80
int3