Function at 0x14003fc9c
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 [0x140112080]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov r15, rcx
mov qword [rbp - 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rsi, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
movups xmmword [rbp - 0x58], xmm0
test eax, eax
js 0x14003fd48
lea rax, [rbp + 0xb0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14003fd35
lea rdx, [rbp + 0xb0]
jmp 0x14003fd52
xor r8d, r8d
lea rdx, [0x1400fc3cc]
lea rcx, [rbp - 0x58]
call fcn.14000ae0c
mov dword [rsp + 0x40], 0x201
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x48]
sub rax, rcx
cmp rax, 0xc
jb 0x1400403b7
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova r9, qword [rbp - 0x58]
mov qword [rsp + 0x30], ntohl
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x70]
call fcn.140040678
mov dword [rsp + 0x40], 0x601
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rdx, qword [rbp + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov r8, qword [rbp + 0x80]
lea rcx, [rbp - 0x38]
call fcn.14000ae0c
mov ebx, 0x1e01
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400206d4
test eax, eax
jne 0x1400403bd
lea rcx, [rbp - 0x38]
call fcn.140009470
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14003fe23
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 0x14003fe3f
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 0x14003fe88
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x14003fe7f
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 0x14003fe7f
mov rdi, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14003fe84
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
cmp qword [rsp + 0x50], r12
je 0x1400402eb
mov rsi, qword [rbp - 0x80]
mov dword [rsp + 0x68], r12d
mov ecx, dword [rsi + 0x1c]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x14003fee6
mov ecx, dword [rsi + 0x10]
mov eax, ecx
shr eax, 0xa
test al, 1
je 0x14003fed8
cmp dword [rsi + 0x14], 0xa000000c
jne 0x14003fec8
mov ecx, 4
mov dword [rsp + 0x68], ecx
jmp 0x14003ff47
cmp dword [rsi + 0x14], 0xa0000003
jne 0x14003fed8
mov ecx, 0xa
jmp 0x14003fec2
shr ecx, 4
movzx ecx, cl
and ecx, 1
or ecx, 2
jmp 0x14003fec2
shr ecx, 1
test cl, 1
je 0x14003fef3
mov r9d, dword [rsi + 0x10]
jmp 0x14003fef7
or r9d, 0xffffffff
lea rcx, [rsi + 0x20]
cmp qword [rsi + 0x38], 7
jbe 0x14003ff06
mov rcx, qword [rsi + 0x20]
mov r8d, 3
lea rdx, [rbp - 0x10]
call fcn.1400d7a04
mov dword [rsp + 0x70], eax
lea r8, [rbp - 0x10]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14000350c
mov edx, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x68]
test edx, edx
je 0x14003ff43
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x1400403a6
mov rsi, qword [rbp - 0x80]
cmp ecx, 2
jne 0x1400401ff
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 + 0x30]
call fcn.14001391c
or ebx, 0x20
or ebx, 2
mov dword [rsp + 0x40], ebx
lea rcx, [rsi + 0x20]
mov qword [rbp - 0x10], rcx
lea rdx, [rbp + 0x90]
call fcn.14003fbc4
nop
or ebx, 4
mov dword [rsp + 0x40], ebx
lea r11, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova r11, qword [rbp + 0x30]
mov r13, qword [rbp + 0x40]
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x14003ffbe
mov rsi, qword [rax]
mov rax, qword [rax + 0x10]
lea r14, [rsi + rax*2]
mov rdx, r14
mov rcx, rsi
call fcn.14001b534
mov r12, rax
lea r13, [r11 + r13*2]
mov rdx, r13
mov rcx, r11
call fcn.14001b534
mov r9, rax
mov rdx, rax
sub rdx, r11
sar rdx, 1
mov r8, r12
sub r8, rsi
sar r8, 1
mov rcx, r8
cmp rdx, r8
cmovb rcx, rdx
test rcx, rcx
je 0x140040023
sub rsi, r11
movzx eax, word [rsi + r11]
cmp ax, word [r11]
jne 0x1400401fc
add r11, 2
sub rcx, 1
jne 0x14004000a
cmp r8, rdx
jb 0x1400401fc
ja 0x1400401fc
mov rdx, r12
mov si, 0x5c
cmp r12, r14
je 0x140040052
cmp word [rdx], si
je 0x140040049
cmp word [rdx], 0x2f
jne 0x140040052
add rdx, 2
cmp rdx, r14
jne 0x14004003e
mov r8, r9
cmp r9, r13
je 0x140040070
cmp word [r8], si
je 0x140040067
cmp word [r8], 0x2f
jne 0x140040070
add r8, 2
cmp r8, r13
jne 0x14004005a
xor ecx, ecx
cmp r9, r8
setne cl
xor eax, eax
cmp r12, rdx
setne al
xor r12d, r12d
cmp eax, ecx
jne 0x1400401ff
jmp 0x1400400e1
test ecx, ecx
jne 0x1400401ff
cmp word [rdx], si
je 0x1400400a3
cmp word [rdx], 0x2f
mov r9b, r12b
jne 0x1400400a6
mov r9b, 1
cmp word [r8], si
je 0x1400400b6
cmp word [r8], 0x2f
mov ecx, r12d
jne 0x1400400bb
mov ecx, 1
movzx eax, r9b
cmp ecx, eax
jne 0x1400401ff
test r9b, r9b
jne 0x140040130
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x1400401ff
add rdx, 2
add r8, 2
mov ecx, r12d
cmp r8, r13
sete cl
mov eax, r12d
cmp rdx, r14
sete al
sub ecx, eax
cmp rdx, r14
jne 0x14004008d
test ecx, ecx
jne 0x1400401ff
mov rax, qword [rbp - 0x10]
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140040113
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
lea rdx, [rcx + rax*2]
mov r11, rdx
call fcn.14001b534
jmp 0x140040162
cmp word [rdx], si
je 0x140040130
cmp word [rdx], 0x2f
jne 0x140040148
add rdx, 2
cmp rdx, r14
jne 0x140040125
jmp 0x140040148
cmp word [r8], si
je 0x140040148
cmp word [r8], 0x2f
jne 0x1400400e1
add r8, 2
cmp r8, r13
jne 0x14004013b
jmp 0x1400400e1
cmp word [rax], si
je 0x14004015e
cmp word [rax], 0x2f
jne 0x140040167
add rax, 2
cmp rax, rdx
jne 0x140040153
cmp rax, rdx
je 0x140040183
lea rcx, [r11 - 2]
cmp word [rcx], si
je 0x140040183
cmp word [rcx], 0x2f
je 0x140040183
mov r11, rcx
cmp rax, rcx
jne 0x14004016c
sub rdx, r11
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
mov r8, rdx
mov rdx, r11
lea rcx, [rbp + 0x10]
call fcn.14000ae0c
or ebx, 0x1c0
or ebx, 8
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14001b918
or ebx, 0x10
mov dword [rsp + 0x40], ebx
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400401d6
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
mov rcx, rax
call fcn.140019754
cmp rax, 0xffffffffffffffff
je 0x1400401ff
mov sil, 1
jmp 0x140040202
xor r12d, r12d
mov sil, r12b
test bl, 0x10
je 0x140040259
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140040249
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040244
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004039f
call fcn.1400d6494
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], r12b
test bl, 8
je 0x14004026f
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x10]
call fcn.140009470
nop
test bl, 4
je 0x140040288
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x90]
call fcn.140009470
nop
test bl, 2
je 0x14004029d
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x30]
call fcn.140009470
test sil, sil
je 0x1400402d1
mov r8, qword [rbp - 0x80]
add r8, 0x20
mov rax, qword [r15 + 8]
cmp rax, qword [r15 + 0x10]
je 0x1400402c6
mov rdx, r8
mov rcx, rax
call fcn.140007a3c
add qword [r15 + 8], 0x20
jmp 0x1400402d1
mov rdx, rax
mov rcx, r15
call fcn.1400409a0
lea rcx, [rbp - 0x80]
call fcn.14001bd2c
mov rsi, qword [rbp - 0x80]
test rsi, rsi
jne 0x14003fe97
or rsi, 0xffffffffffffffff
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140040325
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x140040320
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 0x140040320
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 0x140040359
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140040359
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 0x140040359
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.140009470
nop
lea rcx, [rbp - 0x58]
call fcn.140009470
mov rax, r15
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400d61f0
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.140003458
nop
call fcn.1400026d4
nop
lea r8, [rbp - 0x38]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140003458
int3