Function at 0x1801e1480
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r12, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.180233580
or rdi, 0xffffffffffffffff
xor ebx, ebx
cmp word [r14], bx
jne 0x1801e14e5
mov r8d, ebx
jmp 0x1801e14fa
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], bx
jne 0x1801e14f0
lea rcx, [r15 + 0x48]
mov rdx, r14
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
lea r13, str.wb86.idx
test eax, eax
jne 0x1801e151d
mov rdx, r13
jmp 0x1801e152b
lea rdx, str.wb98.idx
cmp eax, 1
cmovne rdx, r13
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e1530
lea rcx, [r15 + 0x48]
call fcn.18005ffc0
cmp word [r14], bx
jne 0x1801e154e
mov r8, rbx
jmp 0x1801e155b
mov r8, rdi
inc r8
cmp word [r14 + r8*2], bx
jne 0x1801e1551
lea rcx, [r15 + 0x68]
mov rdx, r14
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
jne 0x1801e157b
lea rdx, str.wb86.dat
jmp 0x1801e1590
lea rdx, str.wb98.dat
lea rcx, str.wb86.dat
cmp eax, 1
cmovne rdx, rcx
mov r8, rdi
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e1593
lea rcx, [r15 + 0x68]
call fcn.18005ffc0
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_WB_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._s_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e15f0
mov r8, rbx
jmp 0x1801e160a
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e1600
lea rcx, [r15 + 0x88]
lea rdx, [rsp + 0x70]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_WB_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._s_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e1665
mov r8, rbx
jmp 0x1801e167a
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e1670
lea rcx, [r15 + 0xa8]
lea rdx, [rsp + 0x70]
call fcn.18005c660
mov byte [r15 + 0xa], 6
mov rcx, r15
call fcn.1801b9ae0
test eax, eax
jne 0x1801e1d4e
cmp word [rsi], bx
jne 0x1801e16aa
mov r8, rbx
jmp 0x1801e16ba
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rsi + r8*2], bx
jne 0x1801e16b0
mov rdx, rsi
lea rcx, [r15 + 0x48]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
jne 0x1801e16d6
mov rdx, r13
jmp 0x1801e16e4
lea rdx, str.wb98.idx
cmp eax, 1
cmovne rdx, r13
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e16f0
lea rcx, [r15 + 0x48]
call fcn.18005ffc0
cmp word [rsi], bx
jne 0x1801e170d
mov r8, rbx
jmp 0x1801e171a
mov r8, rdi
inc r8
cmp word [rsi + r8*2], bx
jne 0x1801e1710
mov rdx, rsi
lea rcx, [r15 + 0x68]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
lea rsi, str.wb86.dat
test eax, eax
jne 0x1801e173d
mov rdx, rsi
jmp 0x1801e174b
lea rdx, str.wb98.dat
cmp eax, 1
cmovne rdx, rsi
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e1750
lea rcx, [r15 + 0x68]
call fcn.18005ffc0
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_WB_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e17ad
mov r8, rbx
jmp 0x1801e17bf
lea rax, [rsp + 0x70]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e17b5
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x88]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_WB_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e181a
mov r8, rbx
jmp 0x1801e182c
lea rax, [rsp + 0x70]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e1822
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0xa8]
call fcn.18005c660
mov rcx, r15
call fcn.1801b9ae0
test eax, eax
jne 0x1801e1d4e
cmp word [r12], bx
jne 0x1801e1859
mov r8, rbx
jmp 0x1801e186a
mov r8, rdi
nop dword [rax]
inc r8
cmp word [r12 + r8*2], bx
jne 0x1801e1860
mov rdx, r12
lea rcx, [r15 + 0x48]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
jne 0x1801e1886
mov rdx, r13
jmp 0x1801e1894
lea rdx, str.wb98.idx
cmp eax, 1
cmovne rdx, r13
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e18a0
lea rcx, [r15 + 0x48]
call fcn.18005ffc0
cmp word [r12], bx
jne 0x1801e18bf
mov r8, rbx
jmp 0x1801e18cc
mov r8, rdi
inc r8
cmp word [r12 + r8*2], bx
jne 0x1801e18c2
mov rdx, r12
lea rcx, [r15 + 0x68]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
jne 0x1801e18e8
mov rdx, rsi
jmp 0x1801e18f6
lea rdx, str.wb98.dat
cmp eax, 1
cmovne rdx, rsi
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x1801e1900
lea rcx, [r15 + 0x68]
call fcn.18005ffc0
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea r12, [0x1802ace18]
mov qword [rsp + 0x20], r12
lea r9, str.__GS_SYS_WB_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e195d
mov r8, rbx
jmp 0x1801e196f
lea rax, [rsp + 0x70]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e1965
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x88]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
mov qword [rsp + 0x20], r12
lea r9, str.__GS_SYS_WB_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], bx
jne 0x1801e19c3
mov r8, rbx
jmp 0x1801e19da
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1801e19d0
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0xa8]
call fcn.18005c660
mov rcx, r15
call fcn.1801b9ae0
test eax, eax
jne 0x1801e1d4e
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [r14], bx
jne 0x1801e1a19
mov r8, rbx
jmp 0x1801e1a2a
mov r8, rdi
nop dword [rax]
inc r8
cmp word [r14 + r8*2], bx
jne 0x1801e1a20
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.18005c660
nop
mov eax, dword [r15 + 0xc8]
test eax, eax
jne 0x1801e1a48
mov rdx, r13
jmp 0x1801e1a56
lea rdx, str.wb98.idx
cmp eax, 1
cmovne rdx, r13
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1801e1a60
lea rcx, [rsp + 0x48]
call fcn.18005ffc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.180233580
lea rdx, [rbp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rbp + 0x180], 0
jne 0x1801e1aaa
mov r8, rbx
jmp 0x1801e1abf
lea rax, [rbp + 0x180]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1801e1ab4
lea rdx, [rbp + 0x180]
lea r12, [r15 + 0x48]
mov rcx, r12
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
je 0x1801e1aee
cmp eax, 1
lea rax, str.wb98.idx
cmovne rax, r13
mov r13, rax
mov r8, rdi
inc r8
cmp word [r13 + r8*2], 0
jne 0x1801e1af1
mov rdx, r13
mov rcx, r12
call fcn.18005ffc0
cmp qword [r12 + 0x18], 8
jb 0x1801e1b14
mov r12, qword [r12]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov rdx, r12
call fcn.180064870
cmp word [r14], 0
jne 0x1801e1b39
mov r8, rbx
jmp 0x1801e1b4b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x1801e1b40
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
lea r12, str.wb98.dat
test eax, eax
jne 0x1801e1b6f
mov rdx, rsi
jmp 0x1801e1b79
mov rdx, r12
cmp eax, 1
cmovne rdx, rsi
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1801e1b80
lea rcx, [rsp + 0x48]
call fcn.18005ffc0
cmp word [rbp + 0x180], 0
jne 0x1801e1ba4
mov r8, rbx
jmp 0x1801e1bbb
lea rax, [rbp + 0x180]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1801e1bb0
lea rdx, [rbp + 0x180]
lea r14, [r15 + 0x68]
mov rcx, r14
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
test eax, eax
je 0x1801e1be3
cmp eax, 1
cmovne r12, rsi
mov rsi, r12
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x1801e1bf0
mov rdx, rsi
mov rcx, r14
call fcn.18005ffc0
cmp qword [r14 + 0x18], 8
jb 0x1801e1c10
mov r14, qword [r14]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov rdx, r14
call fcn.180064870
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
lea rsi, [0x1802ace18]
mov qword [rsp + 0x20], rsi
lea r9, str.__GS_SYS_WB_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sTEMP_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], 0
jne 0x1801e1c74
mov r8, rbx
jmp 0x1801e1c8b
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1801e1c80
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x88]
call fcn.18005c660
mov eax, dword [r15 + 0xc8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x4e20
mov qword [rsp + 0x20], rsi
lea r9, str.__GS_SYS_WB_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sTEMP_s_s_d__d
lea rcx, [rsp + 0x70]
call fcn.18005c530
cmp word [rsp + 0x70], 0
jne 0x1801e1ce0
mov rdi, rbx
jmp 0x1801e1cef
lea rax, [rsp + 0x70]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1801e1ce5
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0xa8]
call fcn.18005c660
mov rcx, r15
call fcn.1801b9ae0
nop
mov r8, qword [rsp + 0x60]
test eax, eax
jne 0x1801e1d36
cmp r8, 8
jb 0x1801e1dd6
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18005cac0
jmp 0x1801e1dd6
cmp r8, 8
jb 0x1801e1d4e
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18005cac0
mov r8, qword [r15 + 0x28]
test r8, r8
je 0x1801e1dd6
mov rdx, qword [r15 + 0x38]
test rdx, rdx
je 0x1801e1dd6
cmp dword [r8 + 0xc], 0x4e20
jne 0x1801e1dd6
mov rcx, rbx
lea r9, str.__GS__
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x1801e1dd6
cmp rcx, 7
jne 0x1801e1d80
lea rax, [r8 + 0x10]
mov qword [r15 + 0x30], rax
cmp dword [rdx + 0xc], 0x4e20
jne 0x1801e1dd6
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
inc rbx
cmp al, byte [r9 + rbx - 1]
jne 0x1801e1dd6
cmp rbx, 7
jne 0x1801e1db0
lea rax, [rdx + 0x10]
mov qword [r15 + 0x40], rax
mov byte [r15 + 9], 1
lea eax, [rbx - 6]
jmp 0x1801e1dd8
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret