Function at 0x180017860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x180146030]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x38], 0
xor r15b, r15b
mov byte [rsp + 0x39], r15b
mov esi, 5
mov dword [rsp + 0x5c], esi
mov byte [rsp + 0x30], r15b
lea r12, [0x180146040]
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x1800178f2
test byte [rcx + 0x1c], 2
je 0x1800178f2
cmp byte [rcx + 0x19], sil
jb 0x1800178f2
lea edx, [rsi + 5]
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
lea r9, [rdi + 0x38]
mov edx, 0x10
lea r8d, [rdx + 0x30]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180017925
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xe80f0000
jmp 0x180017d0d
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017956
test byte [rcx + 0x1c], 2
je 0x180017956
cmp byte [rcx + 0x19], 5
jb 0x180017956
mov edx, 0xb
mov r9d, dword [rdi + 0x38]
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
mov byte [rsp + 0x30], 1
mov rdx, qword [rdi + 0x20]
add rdx, 5
lea r8, [rdi + 0x48]
lea rcx, [r13 + 0x58]
call fcn.180085ce0
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x1800179e3
lfence
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x1800179b1
test byte [rcx + 0x1c], 2
je 0x1800179b1
cmp byte [rcx + 0x19], 2
jb 0x1800179b1
mov esi, 0xc
mov edx, esi
mov r9d, dword [rsp + 0x34]
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
jmp 0x1800179b6
mov esi, 0xc
lea r8, [rdi + 0x48]
xor edx, edx
lea rcx, [r13 + 0x58]
call fcn.180085ce0
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x1800179d7
mov ebx, 0xc000009a
jmp 0x180017d0d
mov r15b, 1
mov byte [rsp + 0x39], r15b
mov dword [rsp + 0x5c], esi
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017a10
test byte [rcx + 0x1c], 2
je 0x180017a10
cmp byte [rcx + 0x19], 5
jb 0x180017a10
mov edx, 0xd
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
lea r8, ds:[rsp + 0x50]
xor edx, edx
lea rcx, [r13 + 0x58]
call fcn.180085ce0
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x180017a7e
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017d18
test byte [rcx + 0x1c], 2
je 0x180017d18
cmp byte [rcx + 0x19], 2
jb 0x180017d18
lfence
mov edx, 0xe
mov ebx, dword [rsp + 0x34]
mov r9d, ebx
lea r8, [0x1801320d8]
mov rcx, qword [0x180146040]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
jmp 0x180017d11
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x40], rax
mov dword [rsp + 0x58], 0
xor r8d, r8d
mov dword [rsp + 0x3c], r8d
nop word [rax + rax]
cmp r8d, esi
jae 0x180017bd4
lea r9, ds:[rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x20]
call fcn.180017f20
mov ebx, eax
mov dword [rsp + 0x34], eax
cmp eax, 0x68040001
je 0x180017b34
test eax, eax
jns 0x180017b2a
mov rcx, qword [0x180146040]
nop dword [rax]
cmp rcx, r12
je 0x180017d18
test byte [rcx + 0x1c], 2
je 0x180017d18
cmp byte [rcx + 0x19], 2
jb 0x180017d18
lfence
mov edx, 0xf
mov ebx, dword [rsp + 0x34]
mov r9d, ebx
lea r8, [0x1801320d8]
mov rcx, qword [0x180146040]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
jmp 0x180017d11
mov r8d, dword [rsp + 0x3c]
jmp 0x180017a97
mov r8d, dword ds:[rsp + 0x3c]
cmp r8d, esi
jae 0x180017bd4
lea rax, ds:[rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x3c]
mov rcx, qword [rdi + 0x20]
call fcn.180017e20
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x180017bbe
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017d18
test byte [rcx + 0x1c], 2
je 0x180017d18
cmp byte [rcx + 0x19], 2
jb 0x180017d18
lfence
mov edx, 0x10
mov ebx, dword [rsp + 0x34]
mov r9d, ebx
lea r8, [0x1801320d8]
mov rcx, qword [0x180146040]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
jmp 0x180017d11
cmp byte [rsp + 0x38], 0
jne 0x180017bcf
mov ebx, 0xe8040011
jmp 0x180017d0d
jmp 0x180017b34
mov edx, dword [rsp + 0x58]
add rdx, qword [rsp + 0x50]
mov dword [rdx], 0xb8485050
mov eax, r8d
add rax, qword [rdi + 0x20]
mov qword [rdx + 4], rax
movabs rax, 0xc3580824448948
mov qword [rdx + 0xc], rax
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x28], xmm0
movups xmm1, xmmword [rax]
movups xmmword [rsp + 0x40], xmm1
mov rax, qword [rdi + 0x48]
mov ecx, 0xb848
mov word [rax], cx
mov rcx, qword [rdi + 0x48]
mov rax, qword [0x1801528b8]
mov qword [rcx + 2], rax
mov rax, qword [rdi + 0x48]
mov dword [rax + 0xa], 0xb84850
mov rax, qword [rdi + 0x48]
mov qword [rax + 0xd], rdi
mov rax, qword [rdi + 0x48]
mov byte [rax + 0x15], 0xc3
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017c72
test byte [rcx + 0x1c], 2
je 0x180017c72
cmp byte [rcx + 0x19], 5
jb 0x180017c72
mov edx, 0x11
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
test r15b, r15b
jne 0x180017cab
mov byte [rsp + 0x40], 0xe9
mov rdx, qword [rdi + 0x20]
mov eax, dword [rdi + 0x48]
sub eax, edx
sub eax, 5
mov dword [rsp + 0x41], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rdi + 0x28]
lock cmpxchg qword [rdx], rcx
mov qword [rsp + 0x80], rax
je 0x180017d04
mov ebx, 0xc0000001
jmp 0x180017d0d
mov dword [rsp + 0x40], 0xfffffbe9
mov byte [rsp + 0x44], 0xff
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rdx]
lock cmpxchg qword [rdx], rcx
mov word [rsp + 0x40], 0xb848
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], 0xc350
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rdx + 8]
lock cmpxchg qword [rdx + 8], rcx
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rdx]
lock cmpxchg qword [rdx], rcx
mov dword [rdi + 0x1c], 1
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rcx, qword [0x180146040]
cmp byte ds:[rsp + 0x30], 0
je 0x180017daa
cmp rcx, r12
je 0x180017d4c
test byte [rcx + 0x1c], 2
je 0x180017d4c
cmp byte [rcx + 0x19], 5
jb 0x180017d4c
mov edx, 0x12
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180011520
lea r9, [rsp + 0x88]
mov r8d, dword [rdi + 0x38]
mov edx, 0x10
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180017daa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xe80f0000
mov rcx, qword [0x180146040]
cmp rcx, r12
je 0x180017daa
test byte [rcx + 0x1c], 2
je 0x180017daa
cmp byte [rcx + 0x19], 2
jb 0x180017daa
mov edx, 0x13
mov r9d, ebx
lea r8, [0x1801320d8]
mov rcx, qword [rcx + 0x10]
call fcn.180012460
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x180017dbc
lea rcx, [r13 + 0x58]
call fcn.180085aa0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x180017dcf
lea rcx, [r13 + 0x58]
call fcn.180085aa0
mov eax, ebx
mov rcx, qword ds:[rsp + 0x90]
xor rcx, rsp
call fcn.18008e6f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret