Function at 0x17002f880
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0x54], 0
mov qword [r9], 0
lea rdx, [rsp + 0x54]
xor ecx, ecx
call sym.ntdll.dll_RtlWow64EnableFsRedirectionEx
mov qword [rsp + 0x60], rsi
mov qword [rsi + 8], 0
cmp word [rdi], 0
je 0x17002f8d4
cmp word [rdi + 2], 0x3a
je 0x17002f8fa
mov rcx, rdi
mov dx, 0x2f
call sym.ntdll.dll_wcschr
test rax, rax
jne 0x17002f8fa
mov rcx, rdi
mov dx, 0x5c
call sym.ntdll.dll_wcschr
test rax, rax
je 0x17002faa6
xor r14d, r14d
mov rbx, qword [rsp + 0x170]
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x160]
mov rcx, rdi
call sym.ntdll.dll_RtlDetermineDosPathNameType_U
cmp eax, 5
jne 0x17002fa1a
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov rcx, r15
mov rdx, rdi
mov rsi, qword [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x40], rbp
mov r9, rbp
call fcn.170035090
mov ebp, eax
cmp eax, 0xc0000135
jne 0x17002fa51
cmp word [rdi], 0
je 0x17002f973
mov ebp, 0xc0000135
cmp word [rdi + 2], 0x3a
je 0x17002fa51
mov rcx, rdi
mov dx, 0x2f
call sym.ntdll.dll_wcschr
mov ebp, 0xc0000135
test rax, rax
jne 0x17002fa51
mov rcx, rdi
mov dx, 0x5c
call sym.ntdll.dll_wcschr
test rax, rax
jne 0x17002fa51
cmp dword [0x17008f58c], 0
je 0x17002fdf1
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea rdx, [rax + rax]
add rdx, 0x14
lea rcx, str.WINEBUILDDIR
mov r8, rsi
call fcn.170032320
test eax, eax
je 0x17002feda
lea r15, [rsp + 0x80]
xor r12d, r12d
mov rcx, r15
xor r9d, r9d
call fcn.170036790
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea rdx, [rax + 0x10]
mov rcx, r15
mov rsi, qword [rsp + 0x60]
mov r8, rsi
call fcn.170032320
test eax, eax
je 0x17002ffef
mov rcx, rsi
call sym.ntdll.dll_RtlFreeUnicodeString
jmp 0x17002fa51
mov rsi, rbp
mov rcx, rdi
mov rdi, qword [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sym.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus
mov ebp, eax
test eax, eax
jne 0x17002fa51
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, rsi
mov r8, r12
mov r9, r13
call fcn.1700352b0
mov ebp, eax
cmp ebp, 0x4000000e
mov ebx, 0xc000007b
cmovne ebx, ebp
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, r14
call sym.ntdll.dll_RtlFreeHeap
cmp dword [rsp + 0x54], 0
je 0x17002fa90
lea rdx, [rsp + 0x54]
mov ecx, 1
call sym.ntdll.dll_RtlWow64EnableFsRedirectionEx
mov eax, ebx
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], rbp
mov r13, qword gs:[0x30]
mov rax, qword [r13 + 0x60]
mov rbx, qword [rax + 0x68]
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea rbp, [rsp + 0x80]
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
mov r9, rbp
call fcn.170034860
test eax, eax
je 0x17002fb28
xor r14d, r14d
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov dword [rsp + 0x80], 0x70
mov qword [rsp + 0x20], rbp
mov ecx, 1
xor edx, edx
mov r8d, 2
mov r9, rbx
call sym.ntdll.dll_RtlFindActivationContextSectionString
test eax, eax
je 0x17002fbba
mov ebx, eax
jmp 0x17002fbfc
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x14], 0
je 0x17002fc22
mov eax, dword [rax + 0x10]
mov esi, dword [rbx + rax + 0xc]
test rsi, rsi
je 0x17002fc22
mov r12d, dword [rbx + rax + 0x10]
movzx r14d, r12w
shr r14d, 1
mov rax, qword [r13 + 0x60]
mov rcx, qword [rax + 0x30]
lea r8, [r14 + r14]
add r8, 0x2a
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
mov rcx, r13
mov r13, rax
test rax, rax
je 0x17002ffe4
movzx ebp, r12w
add r14, 0x14
add rbx, rsi
lea rdx, str.C:windows_system32_
mov rcx, r13
call sym.ntdll.dll_wcscpy
mov rcx, r13
add rcx, 0x28
mov rdx, rbx
mov r8, rbp
call sym.ntdll.dll_memcpy
mov word [r13 + r14*2], 0
mov r14, r13
mov rbp, qword [rsp + 0x40]
jmp 0x17002fc11
mov ebx, 0xc0150008
cmp dword [rsp + 0x90], 0x14
mov qword [rsp + 0x38], r13
jae 0x17002fd2d
xor r13d, r13d
mov rbp, qword [rsp + 0x38]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, r13
mov r13, rbp
call sym.ntdll.dll_RtlFreeHeap
mov rcx, qword [rsp + 0xb8]
call sym.ntdll.dll_RtlReleaseActivationContext
mov rbp, qword [rsp + 0x40]
cmp ebx, 0xc0150008
je 0x17002fc2f
test ebx, ebx
jne 0x17002fa5f
test byte [0x17008d458], 8
jne 0x17002fc7e
mov rdi, r14
jmp 0x17002f8fd
mov ebx, 0xc0000135
xor r14d, r14d
jmp 0x17002fa5f
lea rcx, [rsp + 0x80]
mov rdx, rdi
call sym.ntdll.dll_RtlInitUnicodeString
mov rdx, qword [0x17008f570]
test rdx, rdx
je 0x17002fcc2
add rdx, 0x58
lea rcx, [rsp + 0x80]
mov r8b, 1
call sym.ntdll.dll_RtlEqualUnicodeString
test al, al
je 0x17002fcc2
mov rax, qword [0x17008f570]
mov qword [rbp], rax
xor ebx, ebx
test rax, rax
jne 0x17002fa5f
jmp 0x17002f8fd
mov rcx, r14
call fcn.170030560
mov rbx, rax
mov rcx, rdi
call fcn.170030560
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea rdx, [0x17008d458]
lea r8, str.find_dll_file
lea r9, str.found__s_for__s_n
mov ecx, 3
call fcn.17002dd80
mov rdi, r14
jmp 0x17002f8fd
mov rax, r13
mov r13, r14
mov rax, qword [rax + 0x60]
mov rbx, qword [rax + 0x18]
mov rbp, qword [rbx + 0x10]
add rbx, 0x10
cmp rbp, rbx
je 0x17002fddc
lea r14, [rsp + 0x80]
jmp 0x17002fcf8
mov rbp, qword [rbp]
cmp rbp, rbx
je 0x17002fddc
lea rdx, [rbp + 0x58]
mov rcx, r14
mov r8b, 1
call sym.ntdll.dll_RtlEqualUnicodeString
test al, al
je 0x17002fceb
cmp dword [rbp + 0x12c], 0
jne 0x17002fceb
mov qword [0x17008f570], rbp
mov rax, qword [rsp + 0x40]
mov qword [rax], rbp
xor ebx, ebx
mov r14, r13
jmp 0x17002fa5f
mov rbp, qword [rsp + 0x88]
test byte [rbp + 4], 2
jne 0x17002fe25
mov rsi, r13
mov r13, qword [rsp + 0xa8]
mov ebx, dword [rbp + 8]
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea r8, [rbx + rax*2]
add r8, 2
mov qword [rsp + 0x48], r8
mov rax, qword [rsi + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
test rax, rax
je 0x17003021c
mov r12, rax
cmp dword [rbp + 0xc], 0
je 0x1700302c4
xor r14d, r14d
mov rcx, r12
mov rbx, rcx
mov r8d, dword [rbp + r14*8 + 0x14]
mov edx, dword [rbp + r14*8 + 0x18]
add rdx, r13
call sym.ntdll.dll_memcpy
mov ecx, dword [rbp + r14*8 + 0x14]
and ecx, 0xfffffffe
add rcx, rbx
add r14, 1
mov eax, dword [rbp + 0xc]
cmp r14, rax
jb 0x17002fd8d
cmp rcx, r12
mov r13, qword [rsp + 0x38]
je 0x1700302da
cmp word [rcx - 2], 0x5c
je 0x1700302dd
mov word [rcx], 0
jmp 0x1700302e5
mov rbp, qword [rsp + 0x40]
mov qword [rbp], 0
mov r14, r13
jmp 0x17002f8fd
cmp word [rdi + 2], 0
je 0x17002fa51
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea rcx, [rdi + rax*2]
add rcx, 0xfffffffffffffffc
lea rdx, [0x170073244]
call sym.ntdll.dll_wcscmp
test eax, eax
jne 0x17002fa51
jmp 0x17002f9af
mov rax, qword [r13 + 0x60]
mov rcx, qword [rax + 0x30]
xor r13d, r13d
mov ebp, 0x400
mov r8d, 0x400
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
test rax, rax
je 0x170030427
mov qword [rsp + 0x58], r14
lea r12, [rsp + 0xc0]
lea rsi, [rsp + 0x48]
mov r13, rax
mov r14, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r13
xor ecx, ecx
mov r8, r12
mov r9d, 3
call sym.ntdll.dll_RtlQueryInformationActivationContext
cmp eax, 0xc0000023
jne 0x170030134
mov rax, qword [r14 + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, r13
call sym.ntdll.dll_RtlFreeHeap
mov rbp, qword [rsp + 0x48]
mov rax, qword [r14 + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, rbp
call sym.ntdll.dll_RtlAllocateHeap
mov r13, rax
test rax, rax
jne 0x17002fe65
xor r13d, r13d
mov ebx, 0xc0000017
mov r14, qword [rsp + 0x58]
jmp 0x17002fbd5
movzx eax, word [rsi]
mov word [rsp + 0x38], ax
lea rdx, str.dlls_
mov rcx, rsi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rdi
mov dx, 0x2e
call sym.ntdll.dll_wcsrchr
test rax, rax
je 0x17002ff24
lea rdx, [0x170072d2a]
mov rcx, rax
call sym.ntdll.dll_wcscmp
test eax, eax
jne 0x17002ff24
add word [rsi], 0xfff8
lea rdx, [0x170073272]
mov rcx, rsi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, qword [rsp + 0x40]
mov rbx, rdx
mov r8, r12
mov r9, r13
call fcn.1700352b0
mov r15d, eax
cmp eax, 0xc0000135
jne 0x17003024a
movzx eax, word [rsp + 0x38]
mov word [rsi], ax
lea rdx, str.programs_
mov rcx, rsi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
lea rdx, [0x170073272]
mov rcx, rsi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rbx
mov r8, r12
mov r9, r13
call fcn.1700352b0
mov r15d, eax
cmp eax, 0xc0000135
jne 0x17003024a
mov rcx, rsi
call sym.ntdll.dll_RtlFreeUnicodeString
jmp 0x17002f9d6
mov r14, r13
mov r13, rcx
jmp 0x17002fae4
mov ebp, 1
lea rbx, [0x170073272]
mov r13, qword [rsp + 0x40]
mov qword [rsp + 0x58], r14
jmp 0x17003005a
mov r12d, dword [rsp + 0x6c]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call sym.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, ebp
call fcn.170036790
mov rcx, rdi
call sym.ntdll.dll_wcslen
lea rdx, [rax + 0x10]
mov rcx, rbx
mov r8, rsi
call fcn.170032320
add ebp, 1
test eax, eax
mov r13, qword [rsp + 0x40]
lea rbx, [0x170073272]
jne 0x170030230
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x38], ebp
movzx r14d, word [rsi]
mov rcx, rsi
lea rdx, str.x86_64_windows
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rbx
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r13
mov rbp, rbx
mov r12, qword [rsp + 0x160]
mov r8, r12
mov rbx, qword [rsp + 0x168]
mov r9, rbx
call fcn.1700352b0
cmp eax, 0xc0000135
jne 0x170030226
mov word [rsi], r14w
mov rcx, rsi
mov rdx, rbp
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rcx, rsi
mov rdx, rdi
call sym.ntdll.dll_RtlAppendUnicodeToString
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r13
mov r8, r12
mov r9, rbx
call fcn.1700352b0
mov r15d, eax
mov r12d, 1
cmp eax, 0x4000000e
mov r14, qword [rsp + 0x58]
mov ebp, dword [rsp + 0x38]
je 0x17003000c
cmp r15d, 0xc0000135
je 0x170030007
mov rsi, qword [rsp + 0x60]
jmp 0x17003024a
test eax, eax
jne 0x1700302ce
mov rcx, qword [r13 + 0x48]
test rcx, rcx
mov r14, qword [rsp + 0x58]
je 0x17002fbd5
mov dx, 0x5c
call sym.ntdll.dll_wcsrchr
test rax, rax
je 0x17003038a
mov rbp, rax
mov esi, dword [r13 + 0x3c]
add rbp, 2
cmp rsi, 2
jb 0x1700301ba
shr rsi, 1
mov rcx, rbp
call sym.ntdll.dll_wcslen
cmp esi, eax
jae 0x1700301ba
mov r8, qword [r13 + 0x58]
mov byte [rsp + 0x20], 1
mov rcx, rbp
mov rdx, rsi
mov r9, rsi
call sym.ntdll.dll_RtlCompareUnicodeStrings
test eax, eax
jne 0x1700301ba
lea rcx, [rsi*2]
add rcx, rbp
lea rdx, [0x170073230]
call sym.ntdll.dll__wcsicmp
test eax, eax
je 0x17003038a
sub rbp, qword [r13 + 0x48]
lea rax, [rbp + 2]
movabs rsi, 0x1fffffffe
and rax, rsi
movzx r8d, word [rsp + 0x70]
add r8, rax
mov qword [rsp + 0x48], r8
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor ebx, ebx
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
mov r14, rax
test rax, rax
je 0x170030427
mov rdx, qword [r13 + 0x48]
and rbp, rsi
mov rcx, r14
mov r8, rbp
call sym.ntdll.dll_memcpy
add rbp, r14
mov rcx, rbp
jmp 0x17003041a
mov ebx, 0xc0000017
jmp 0x17002fbd2
mov r15d, eax
mov r14, qword [rsp + 0x58]
jmp 0x17003024a
mov ecx, r12d
test r12d, r12d
je 0x17003024a
mov rcx, rsi
call sym.ntdll.dll_RtlFreeUnicodeString
mov ebp, 0x4000000e
jmp 0x17002fa51
mov rcx, rsi
call sym.ntdll.dll_RtlFreeUnicodeString
mov ebp, r15d
test r15d, r15d
jne 0x17002fa51
mov rcx, rdi
call sym.ntdll.dll_wcslen
add eax, eax
add eax, 0x30
mov word [rsi], ax
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
movzx r8d, ax
add r8, 2
xor ebp, ebp
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
mov qword [rsi + 8], rax
lea rdx, [0x1700732d0]
mov rcx, rax
call sym.ntdll.dll_wcscpy
mov rcx, qword [rsi + 8]
lea rdx, str.C:windows_system32_
call sym.ntdll.dll_wcscat
mov rcx, qword [rsi + 8]
mov rdx, rdi
call sym.ntdll.dll_wcscat
jmp 0x17002fa51
mov rcx, r12
mov r13, qword [rsp + 0x38]
jmp 0x1700302dd
mov ebx, eax
mov r14, qword [rsp + 0x58]
jmp 0x17002fbd5
mov rcx, r12
mov rdx, rdi
call sym.ntdll.dll_wcscpy
test byte [rbp + 4], 4
jne 0x1700302f5
xor ebx, ebx
mov r14, r12
jmp 0x17002fbd2
mov rcx, r12
call sym.ntdll.dll_wcslen
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor ebx, ebx
xor ecx, ecx
mov rdx, r12
mov r8, rax
xor r9d, r9d
call sym.ntdll.dll_RtlExpandEnvironmentStrings
mov rax, qword [r13 + 0x60]
mov rcx, qword [rax + 0x30]
mov r8, qword [rsp + 0x48]
add r8, r8
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
mov r14, rax
test rax, rax
je 0x17003036e
mov rcx, r12
call sym.ntdll.dll_wcslen
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov rdx, r12
mov r8, rax
mov r9, r14
call sym.ntdll.dll_RtlExpandEnvironmentStrings
jmp 0x170030373
mov ebx, 0xc0000017
mov rax, qword [r13 + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, r12
call sym.ntdll.dll_RtlFreeHeap
jmp 0x17002fbd2
cmp qword [r13 + 0x58], 0
je 0x17002fbd5
mov eax, dword [r13 + 0x3c]
movzx ecx, word [rsp + 0x70]
lea r8, [rax + rcx]
add r8, 0x28
mov qword [rsp + 0x48], r8
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor ebx, ebx
xor edx, edx
call sym.ntdll.dll_RtlAllocateHeap
mov r14, rax
test rax, rax
je 0x170030427
lea rdx, str.C:windows
mov rcx, r14
call sym.ntdll.dll_wcscpy
mov rcx, r14
call sym.ntdll.dll_wcslen
lea rsi, [r14 + rax*2]
movaps xmm0, xmmword [str.winsxs.manifest]
movups xmmword [r14 + rax*2], xmm0
lea rcx, [r14 + rax*2]
add rcx, 0x10
mov rdx, qword [r13 + 0x58]
mov ebp, dword [r13 + 0x3c]
mov r8, rbp
call sym.ntdll.dll_memcpy
and ebp, 0xfffffffe
lea rcx, [rsi + rbp]
add rcx, 0x12
mov word [rbp + rsi + 0x10], 0x5c
mov rdx, rdi
call sym.ntdll.dll_wcscpy
jmp 0x17002fbd5
mov ebx, 0xc0000017
jmp 0x17002fbd5