Function at 0x180176870
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 - 0x398]
sub rsp, 0x498
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r13, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.180233580
or rdi, 0xffffffffffffffff
xor ebx, ebx
cmp word [rsi], bx
jne 0x1801768d4
mov r8d, ebx
jmp 0x1801768ea
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], bx
jne 0x1801768e0
lea r12, [r13 + 0x48]
mov rdx, rsi
mov rcx, r12
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.idx
mov rcx, r12
call fcn.18005ffc0
cmp word [rsi], bx
jne 0x180176918
mov r8, rbx
jmp 0x18017692a
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], bx
jne 0x180176920
lea rcx, [r13 + 0x68]
mov rdx, rsi
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.dat
lea rcx, [r13 + 0x68]
call fcn.18005ffc0
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_BH_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._s_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x18017698b
mov r8, rbx
jmp 0x18017699d
lea rax, [rsp + 0x60]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x180176993
lea rcx, [r13 + 0x88]
lea rdx, [rsp + 0x60]
call fcn.18005c660
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_BH_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._s_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x1801769ed
mov r8, rbx
jmp 0x1801769ff
lea rax, [rsp + 0x60]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x1801769f5
lea rcx, [r13 + 0xa8]
lea rdx, [rsp + 0x60]
call fcn.18005c660
mov byte [r13 + 0xa], 0xb
mov rcx, r13
call fcn.1801b9ae0
test eax, eax
jne 0x180176f79
cmp word [r14], bx
jne 0x180176a30
mov r8, rbx
jmp 0x180176a3d
mov r8, rdi
inc r8
cmp word [r14 + r8*2], bx
jne 0x180176a33
mov rdx, r14
mov rcx, r12
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.idx
mov rcx, r12
call fcn.18005ffc0
cmp word [r14], bx
jne 0x180176a68
mov r8, rbx
jmp 0x180176a7a
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], bx
jne 0x180176a70
mov rdx, r14
lea r14, [r13 + 0x68]
mov rcx, r14
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.dat
mov rcx, r14
call fcn.18005ffc0
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_BH_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x180176add
mov r8, rbx
jmp 0x180176aef
lea rax, [rsp + 0x60]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x180176ae5
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x88]
call fcn.18005c660
mov dword [rsp + 0x28], 0x4e20
lea rax, [0x1802ace18]
mov qword [rsp + 0x20], rax
lea r9, str.__GS_SYS_BH_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x180176b3f
mov r8, rbx
jmp 0x180176b5a
lea rax, [rsp + 0x60]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180176b50
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0xa8]
call fcn.18005c660
mov rcx, r13
call fcn.1801b9ae0
test eax, eax
jne 0x180176f79
cmp word [r15], bx
jne 0x180176b86
mov r8, rbx
jmp 0x180176b9a
mov r8, rdi
nop dword [rax]
inc r8
cmp word [r15 + r8*2], bx
jne 0x180176b90
mov rdx, r15
mov rcx, r12
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.idx
mov rcx, r12
call fcn.18005ffc0
cmp word [r15], bx
jne 0x180176bc5
mov r8, rbx
jmp 0x180176bda
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [r15 + r8*2], bx
jne 0x180176bd0
mov rdx, r15
mov rcx, r14
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.dat
mov rcx, r14
call fcn.18005ffc0
mov dword [rsp + 0x28], 0x4e20
lea r15, [0x1802ace18]
mov qword [rsp + 0x20], r15
lea r9, str.__GS_SYS_BH_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x180176c39
mov r8, rbx
jmp 0x180176c4b
lea rax, [rsp + 0x60]
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x180176c41
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x88]
call fcn.18005c660
mov dword [rsp + 0x28], 0x4e20
mov qword [rsp + 0x20], r15
lea r9, str.__GS_SYS_BH_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sBACK_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], bx
jne 0x180176c94
mov r8, rbx
jmp 0x180176caa
lea rax, [rsp + 0x60]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180176ca0
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0xa8]
call fcn.18005c660
mov rcx, r13
call fcn.1801b9ae0
test eax, eax
jne 0x180176f79
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
cmp word [rsi], bx
jne 0x180176ce8
mov r8, rbx
jmp 0x180176cfa
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], bx
jne 0x180176cf0
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.18005c660
nop
mov r8d, 6
lea rdx, str.bh.idx
lea rcx, [rsp + 0x38]
call fcn.18005ffc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.180233580
lea rdx, [rbp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rbp + 0x170], 0
jne 0x180176d54
mov r8, rbx
jmp 0x180176d6b
lea rax, [rbp + 0x170]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180176d60
lea rdx, [rbp + 0x170]
mov rcx, r12
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.idx
mov rcx, r12
call fcn.18005ffc0
cmp qword [r12 + 0x18], 8
jb 0x180176d9b
mov r12, qword [r12]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov rdx, r12
call fcn.180064870
cmp word [rsi], 0
jne 0x180176dbf
mov r8, rbx
jmp 0x180176dcd
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x180176dc2
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.dat
lea rcx, [rsp + 0x38]
call fcn.18005ffc0
cmp word [rbp + 0x170], 0
jne 0x180176e00
mov r8, rbx
jmp 0x180176e1b
lea rax, [rbp + 0x170]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180176e10
lea rdx, [rbp + 0x170]
mov rcx, r14
call fcn.18005c660
mov r8d, 6
lea rdx, str.bh.dat
mov rcx, r14
call fcn.18005ffc0
cmp qword [r14 + 0x18], 8
jb 0x180176e49
mov r14, qword [r14]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.180064870
mov dword [rsp + 0x28], 0x4e20
lea rsi, [0x1802ace18]
mov qword [rsp + 0x20], rsi
lea r9, str.__GS_SYS_BH_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._sTEMP_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], 0
jne 0x180176ea2
mov r8, rbx
jmp 0x180176ebb
lea rax, [rsp + 0x60]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180176eb0
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x88]
call fcn.18005c660
mov dword [rsp + 0x28], 0x4e20
mov qword [rsp + 0x20], rsi
lea r9, str.__GS_SYS_BH_DAT__
lea r8, str.WanNengWBInput
lea rdx, str._sTEMP_s_s_d
lea rcx, [rsp + 0x60]
call fcn.18005c530
cmp word [rsp + 0x60], 0
jne 0x180176f05
mov rdi, rbx
jmp 0x180176f1a
lea rax, [rsp + 0x60]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180176f10
mov r8, rdi
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0xa8]
call fcn.18005c660
mov rcx, r13
call fcn.1801b9ae0
nop
mov r8, qword [rsp + 0x50]
test eax, eax
jne 0x180176f61
cmp r8, 8
jb 0x180176ff6
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.18005cac0
jmp 0x180176ff6
cmp r8, 8
jb 0x180176f79
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.18005cac0
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x180176ff6
mov rdx, qword [r13 + 0x38]
test rdx, rdx
je 0x180176ff6
cmp dword [r8 + 0xc], 0x4e20
jne 0x180176ff6
mov rcx, rbx
lea r9, str.__GS__
nop
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x180176ff6
cmp rcx, 7
jne 0x180176fa0
lea rax, [r8 + 0x10]
mov qword [r13 + 0x30], rax
cmp dword [rdx + 0xc], 0x4e20
jne 0x180176ff6
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
inc rbx
cmp al, byte [r9 + rbx - 1]
jne 0x180176ff6
cmp rbx, 7
jne 0x180176fd0
lea rax, [rdx + 0x10]
mov qword [r13 + 0x40], rax
mov byte [r13 + 9], 1
lea eax, [rbx - 6]
jmp 0x180176ff8
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x498
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret