Function at 0x1400416c0
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 - 0x318]
sub rsp, 0x3f0
mov rax, qword [0x1401a80c0]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov r14, rcx
mov qword [rbp + 0x10], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xd0]
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 + 0x70], r12
mov qword [rbp + 0x78], r12
movups xmmword [rbp + 0x60], xmm0
test eax, eax
js 0x140041772
lea rax, [rbp + 0xd0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14004175f
lea rdx, [rbp + 0xd0]
jmp 0x14004177c
xor r8d, r8d
lea rdx, [0x14018a72c]
lea rcx, [rbp + 0x60]
call fcn.140013b54
mov dword [rsp + 0x40], 0x1001
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x70]
sub rax, rcx
cmp rax, 0xc
jb 0x140041e9e
lea r9, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova r9, qword [rbp + 0x60]
mov qword [rsp + 0x30], select
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x80]
call fcn.14004218c
mov dword [rsp + 0x40], 0x3001
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 7
cmova rdx, qword [rbp + 0x80]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov r8, qword [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140013b54
mov ebx, 0xf001
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.140012ab0
test eax, eax
jne 0x140041ea4
lea rcx, [rbp - 0x80]
call fcn.140011e3c
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov rdi, qword [rbp + 0x48]
test rdi, rdi
je 0x140041859
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x48]
mov ebx, dword [rsp + 0x40]
movaps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0x50], xmm0
test rdi, rdi
je 0x140041873
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0x48]
mov ebx, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
test rdi, rdi
je 0x1400418bc
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x1400418b4
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400418b4
mov rdi, qword [rbp + 0x48]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400418b8
mov rdi, qword [rbp + 0x48]
mov ebx, dword [rsp + 0x40]
cmp qword [rbp + 0x40], r12
je 0x140041dd3
mov r13, qword [rbp + 0x50]
mov dword [rsp + 0x50], r12d
mov eax, dword [r13 + 0x1c]
and eax, 3
cmp al, 3
jne 0x14004191d
test dword [r13 + 0x10], 0x400
je 0x14004190d
cmp dword [r13 + 0x14], 0xa000000c
jne 0x1400418fc
mov ecx, 4
mov dword [rsp + 0x50], ecx
jmp 0x140041982
cmp dword [r13 + 0x14], 0xa0000003
jne 0x14004190d
mov ecx, 0xa
jmp 0x1400418f3
movzx ecx, byte [r13 + 0x10]
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x1400418f3
test byte [r13 + 0x1c], 2
je 0x14004192a
mov r9d, dword [r13 + 0x10]
jmp 0x14004192e
or r9d, 0xffffffff
lea rsi, [r13 + 0x20]
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14004193f
mov rcx, qword [rsi]
mov r8d, 3
lea rdx, [rbp + 0xb0]
call fcn.14014a154
mov dword [rsp + 0x58], eax
lea r8, [rbp + 0xb0]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400035fc
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
test edx, edx
je 0x140041982
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x140041e8e
cmp ecx, 2
jne 0x140041ced
lea rax, str..log
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 4
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.14001c5b8
bts ebx, 8
or ebx, 2
mov dword [rsp + 0x40], ebx
lea rcx, [r13 + 0x20]
cmp qword [r13 + 0x38], 7
jbe 0x1400419c5
mov rcx, qword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
lea rdx, [rcx + rax*2]
mov rsi, rdx
call fcn.140002c00
jmp 0x1400419e7
cmp word [rax], 0x5c
je 0x1400419e3
cmp word [rax], 0x2f
jne 0x1400419ec
add rax, 2
cmp rax, rdx
jne 0x1400419d7
cmp rax, rdx
je 0x140041a09
lea rcx, [rsi - 2]
cmp word [rcx], 0x5c
je 0x140041a09
cmp word [rcx], 0x2f
je 0x140041a09
mov rsi, rcx
cmp rax, rcx
jne 0x1400419f1
mov r8d, Ordinal_60
mov rcx, rsi
call fcn.14014a830
cmp rsi, rax
je 0x140041a4b
lea rdx, [rax - 2]
cmp rsi, rdx
je 0x140041a4b
cmp word [rdx], 0x2e
jne 0x140041a42
lea rcx, [rdx - 2]
cmp rsi, rcx
jne 0x140041a4e
cmp word [rcx], 0x2e
jne 0x140041a4e
jmp 0x140041a4b
cmp word [rdx], 0x2e
je 0x140041a4e
sub rdx, 2
cmp rsi, rdx
jne 0x140041a3c
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.140013b54
or ebx, 0xe0
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rsi, qword [rbp - 0x40]
mov r11, qword [rbp - 0x30]
lea r12, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r12, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea r15, [r12 + rax*2]
mov rdx, r15
mov rcx, r12
call fcn.140002c00
mov qword [rsp + 0x48], rax
lea r11, [rsi + r11*2]
mov rdx, r11
mov rcx, rsi
call fcn.140002c00
mov r10, rax
mov rdx, rax
sub rdx, rsi
sar rdx, 1
mov r9, qword [rsp + 0x48]
mov r8, r9
sub r8, r12
sar r8, 1
mov rcx, r8
cmp rdx, r8
cmovb rcx, rdx
test rcx, rcx
je 0x140041b0f
sub r12, rsi
movzx eax, word [rsi + r12]
cmp ax, word [rsi]
jne 0x140041cea
add rsi, 2
sub rcx, 1
jne 0x140041af7
cmp r8, rdx
jb 0x140041cea
ja 0x140041cea
mov rdx, r9
mov si, 0x5c
cmp r9, r15
je 0x140041b3e
cmp word [rdx], si
je 0x140041b35
cmp word [rdx], 0x2f
jne 0x140041b3e
add rdx, 2
cmp rdx, r15
jne 0x140041b2a
mov r8, r10
cmp r10, r11
je 0x140041b5c
cmp word [r8], si
je 0x140041b53
cmp word [r8], 0x2f
jne 0x140041b5c
add r8, 2
cmp r8, r11
jne 0x140041b46
xor r12d, r12d
mov ecx, r12d
cmp r10, r8
setne cl
mov eax, r12d
cmp r9, rdx
setne al
cmp eax, ecx
jne 0x140041ced
jmp 0x140041bd1
test ecx, ecx
jne 0x140041ced
cmp word [rdx], si
je 0x140041b91
cmp word [rdx], 0x2f
mov r9b, r12b
jne 0x140041b94
mov r9b, 1
cmp word [r8], si
je 0x140041ba4
cmp word [r8], 0x2f
mov ecx, r12d
jne 0x140041ba9
mov ecx, 1
movzx eax, r9b
cmp ecx, eax
jne 0x140041ced
test r9b, r9b
jne 0x140041c1e
movzx eax, word [r8]
movzx ecx, word [rdx]
cmp ecx, eax
jne 0x140041ced
add rdx, 2
add r8, 2
mov ecx, r12d
cmp r8, r11
sete cl
mov eax, r12d
cmp rdx, r15
sete al
sub ecx, eax
cmp rdx, r15
jne 0x140041b7b
test ecx, ecx
jne 0x140041ced
lea rcx, [r13 + 0x20]
cmp qword [r13 + 0x38], 7
jbe 0x140041c01
mov rcx, qword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
lea rdx, [rcx + rax*2]
mov r11, rdx
call fcn.140002c00
jmp 0x140041c50
cmp word [rdx], si
je 0x140041c1e
cmp word [rdx], 0x2f
jne 0x140041c36
add rdx, 2
cmp rdx, r15
jne 0x140041c13
jmp 0x140041c36
cmp word [r8], si
je 0x140041c36
cmp word [r8], 0x2f
jne 0x140041bd1
add r8, 2
cmp r8, r11
jne 0x140041c29
jmp 0x140041bd1
cmp word [rax], si
je 0x140041c4c
cmp word [rax], 0x2f
jne 0x140041c55
add rax, 2
cmp rax, rdx
jne 0x140041c41
cmp rax, rdx
je 0x140041c71
lea rcx, [r11 - 2]
cmp word [rcx], si
je 0x140041c71
cmp word [rcx], 0x2f
je 0x140041c71
mov r11, rcx
cmp rax, rcx
jne 0x140041c5a
sub rdx, r11
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov r8, rdx
mov rdx, r11
lea rcx, [rbp - 0x60]
call fcn.140013b54
or ebx, 0xe00
or ebx, 8
mov dword [rsp + 0x40], ebx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140023e64
or ebx, 0x10
mov dword [rsp + 0x40], ebx
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140041cc4
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
mov rcx, rax
call fcn.140022350
cmp rax, 0xffffffffffffffff
je 0x140041ced
mov sil, 1
jmp 0x140041cf0
xor r12d, r12d
mov sil, r12b
test bl, 0x10
je 0x140041d47
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140041d37
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041d32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041e87
call fcn.140148f04
mov qword [rbp], r12
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], r12b
test bl, 8
je 0x140041d5d
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x60]
call fcn.140011e3c
nop
test bl, 4
je 0x140041d74
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x60]
call fcn.140011e3c
nop
test bl, 2
je 0x140041d89
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x40]
call fcn.140011e3c
test sil, sil
je 0x140041db9
lea r8, [r13 + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140041dae
mov rdx, r8
mov rcx, rax
call fcn.1400105fc
add qword [r14 + 8], 0x20
jmp 0x140041db9
mov rdx, rax
mov rcx, r14
call fcn.1400424ac
lea rcx, [rbp + 0x50]
call fcn.14000384c
mov r13, qword [rbp + 0x50]
test r13, r13
jne 0x1400418ca
or rsi, 0xffffffffffffffff
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x140041e0c
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x140041e08
mov rbx, qword [rbp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140041e08
mov rcx, qword [rbp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x48]
test rdi, rdi
je 0x140041e3e
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140041e3e
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140041e3e
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x80]
call fcn.140011e3c
nop
lea rcx, [rbp + 0x60]
call fcn.140011e3c
mov rax, r14
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140148a70
lea r11, [rsp + 0x3f0]
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
mov r8, rsi
lea rcx, str.directory_entry::status
call fcn.140003548
nop
call fcn.140002284
nop
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140003548
int3