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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbx
push rsi
push rdi
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x40], edi
mov dword [rax - 0xe8], edi
mov qword [rax - 0x100], rdi
mov rcx, qword [rcx + 0x34]
test rcx, rcx
je 0x180018ab2
lea rax, [rax + 8]
test rax, rax
je 0x180018ab2
lea rdx, [rcx + 0x7f]
mov qword [rsp + 0x48], rdx
lea eax, [rdi + 1]
jmp 0x180018ac1
mov eax, edi
mov rdx, qword [rsp + 0x190]
mov qword [rsp + 0x48], rdx
test eax, eax
je 0x18001917e
test rcx, rcx
je 0x180018af0
lea rax, [rsp + 0x190]
test rax, rax
je 0x180018af0
mov eax, dword [rcx + 0x87]
mov rax, qword [rcx + rax*8 + 0x8b]
mov qword [rsp + 0x58], rax
jmp 0x180018afd
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x58], rax
mov edx, 0x28
xor ecx, ecx
lea r9d, [rdx - 0x24]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x180018b2f
mov eax, edi
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x50], rcx
jmp 0x180018b34
mov eax, 1
test eax, eax
je 0x18001917e
mov edx, 0x28
xor ecx, ecx
lea r9d, [rdx - 0x24]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x180018b74
mov eax, edi
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x80], rcx
jmp 0x180018b79
mov eax, 1
test eax, eax
je 0x180019147
mov rax, qword [rsp + 0x58]
mov edx, dword [rax + 4]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18001910d
mov r9, qword [rsp + 0x80]
mov r8, rax
mov edx, ebx
mov rcx, rsi
call fcn.180018500
test eax, eax
je 0x1800190fa
nop word [rax + rax]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x80]
call fcn.1800011e0
test eax, eax
je 0x1800190fa
bt dword [rsi + 0x54], 0x1f
jb 0x1800190fa
xor edx, edx
mov rcx, qword [rsi + 0x24]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800190fa
mov edx, dword [rsp + 0x94]
mov dword [rsp + 0x190], edx
cmp qword [rsp + 0xb0], 0
jne 0x180018d16
lea r9, [rsp + 0x9c]
mov r8d, edx
mov ebx, dword [rsp + 0x98]
mov edx, ebx
mov rcx, rsi
call fcn.1800183d0
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x58]
imul eax, dword [rcx + 4]
mov dword [rsp + 0x190], eax
mov edx, eax
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180018bd0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rdx, qword [rsp + 0x58]
imul eax, dword [rdx + 0x18]
imul ebx, dword [rdx + 4]
add ebx, eax
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, dword [rsp + 0x190]
mov rdx, rbx
mov rcx, qword [rsi + 0x34]
call fcn.180002c60
test eax, eax
je 0x180018bd0
mov edx, dword [rsp + 0x190]
cmp dword [rsp + 0xa4], edx
je 0x180018d16
mov rax, qword [rsp + 0x60]
mov ecx, 0x101
cmp cx, word [rax]
jne 0x180018d16
mov ecx, dword [rax + 0xc]
mov r8, qword [rsp + 0x58]
imul ecx, dword [r8 + 4]
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
imul eax, dword [r8 + 0x18]
add eax, ecx
cmp rax, rbx
je 0x180018bd0
mov eax, edi
mov dword [rsp + 0x68], eax
nop dword [rax]
mov ebx, eax
lea rcx, [rbx + 0x27]
mov eax, edx
cmp rcx, rax
jae 0x1800190d1
bt dword [rsi + 0x54], 0x1f
jb 0x1800190d1
xor edx, edx
mov rcx, qword [rsi + 0x24]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800190d1
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x180018d62
add rbx, rax
jmp 0x180018d6a
mov rax, qword [rsp + 0x60]
add rbx, rax
mov eax, 0x101
cmp word [rbx], ax
jne 0x1800190ac
movzx ecx, byte [rbx + 0x13]
test cl, cl
je 0x1800190ac
movzx eax, word [rbx + 0x24]
lea r9, [rax + rbx + 0x26]
movzx edx, cl
lea rax, [rsp + 0x70]
test rax, rax
jne 0x180018d9e
mov eax, edi
jmp 0x180018dab
lea r8, [rsp + 0x70]
mov rcx, r9
call fcn.180018630
test eax, eax
je 0x1800190ac
test byte [rbx + 0x12], 2
je 0x180018e37
lea rcx, [rsi + 0x3c]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov eax, dword [rsp + 0x1a8]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x1a0]
call fcn.1800174c0
test eax, eax
je 0x1800190ac
lea rax, [rsp + 0x88]
test rax, rax
je 0x1800190ac
lea rax, [rbx + 0x14]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.180018700
jmp 0x1800190ac
cmp dword [rbx + 0x18], 0
je 0x1800190ac
mov rcx, qword [rsp + 0x50]
call fcn.180001050
test eax, eax
je 0x1800190ac
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x78]
mov edx, dword [rbx + 0x18]
mov rcx, rsi
call fcn.180018500
test eax, eax
je 0x1800190ac
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
xor edx, edx
mov r8d, 0x93
lea rcx, [rsp + 0xd0]
call fcn.180035040
xor r11b, r11b
mov byte [rsp + 0x14c], r11b
test byte [rbx + 0x12], 1
movzx ecx, r11b
mov eax, 4
cmovne ecx, eax
mov byte [rsp + 0x14c], cl
mov rdx, qword [rsp + 0x78]
test byte [rdx + 0x22], 0x20
je 0x180018ed1
movzx eax, cl
or eax, 1
mov cl, al
mov byte [rsp + 0x14c], al
movzx eax, word [rdx + 0x22]
mov r8d, 0x400
and ax, r8w
cmp di, ax
je 0x180018ef1
movzx eax, cl
or eax, 8
mov byte [rsp + 0x14c], al
mov rax, qword [rdx + 0x38]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x118], 0xffffffffffffffff
mov qword [rsp + 0x138], rdi
mov eax, dword [rdx + 0x40]
mov qword [rsp + 0x140], rax
movzx eax, byte [rsp + 0x148]
and al, 0xc9
or al, 8
mov byte [rsp + 0x148], al
cmp dword [rsp + 0x1a8], 0
jne 0x180018f52
test byte [rbx + 0x12], 4
jne 0x180018f52
mov ecx, 1
jmp 0x180018f54
mov ecx, edi
xor cl, al
and cl, 1
xor al, cl
mov byte [rsp + 0x148], al
lea rcx, [rdx + 0x60]
lea rdx, [rsp + 0xf0]
call fcn.1800187f0
mov rdi, qword [rsp + 0x78]
lea rcx, [rdi + 0x54]
lea rdx, [rsp + 0xe8]
call fcn.1800187f0
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0xf8]
call fcn.1800187f0
mov rax, qword [rsp + 0xb8]
mov r8d, dword [rax]
add r8d, 4
lea r9, [rsp + 0x15b]
mov rdx, rax
lea rcx, [rsi + 0x3c]
call fcn.180017020
test eax, eax
je 0x180019059
lea r8, [rsp + 0x100]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsi + 0x3c]
call fcn.180016f30
test eax, eax
je 0x180019059
mov r8d, dword [rsi + 0x248]
test r8b, 1
je 0x180019014
test byte [rsp + 0x148], 1
je 0x180018ffc
test r8b, 4
je 0x180019014
shl r8d, 0x1e
sar r8d, 0x1f
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.180018850
movzx eax, word [rsp + 0x155]
mov ecx, 0xbfff
and ax, cx
mov ecx, 0x3000
or ax, cx
mov word [rsp + 0x155], ax
xor eax, eax
mov dword [rsp + 0x157], eax
and byte [rsp + 0x14b], 0xfe
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, [rsi + 0x3c]
call fcn.180017150
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax]
xor r9d, r9d
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
call fcn.1800011e0
test eax, eax
je 0x1800190aa
mov r8d, dword [rsp + 0xa8]
mov edx, dword [rsp + 0x90]
mov rcx, rsi
call fcn.1800183d0
jmp 0x180019070
xor edi, edi
movzx ecx, word [rbx + 0x24]
movzx eax, byte [rbx + 0x13]
lea edx, [rcx + rax + 0x29]
and edx, 0xfffffffc
mov eax, dword [rsp + 0x68]
add eax, edx
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x190]
jmp 0x180018d20
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180018bd0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x60], rdi
jmp 0x180018bd0
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001912b
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 8], rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180019162
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 8], rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x180019274
mov dword [rsp + 0x190], edi
cmp dword [rsp + 0x40], 0
jbe 0x18001925e
add rax, 4
mov qword [rsp + 0x48], rax
nop word [rax + rax]
bt dword [rsi + 0x54], 0x1f
jb 0x18001925e
xor edx, edx
mov rcx, qword [rsi + 0x24]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001925e
mov ebx, dword [rsp + 0x1b8]
mov r8d, dword [rsp + 0x40]
mov rdi, r8
mov eax, dword [rsp + 0x190]
imul rax, rbx
xor edx, edx
div r8
mov ecx, dword [rsp + 0x1b0]
add ecx, eax
mov dword [rsi + 4], ecx
xor edx, edx
mov eax, dword [rsp + 0x1b8]
div r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x1a8]
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0xc]
mov edx, dword [rax]
mov rcx, rsi
call fcn.180018a60
mov ecx, dword [rsp + 0x190]
inc ecx
mov dword [rsp + 0x190], ecx
mov eax, ecx
imul rax, rbx
xor edx, edx
div rdi
add eax, dword [rsp + 0x1b0]
mov dword [rsi + 4], eax
add qword [rsp + 0x48], 0x18
cmp ecx, dword [rsp + 0x40]
jb 0x1800191b0
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsi + 0x210], 0
mov eax, 0
seta al
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret