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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
xor ebx, ebx
mov rdi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], r12d
test rcx, rcx
je 0x14001a194
mov r15, qword [rcx + 0x30]
test r15, r15
je 0x14001a194
cmp qword [r15 + 0x18], rbx
je 0x14001a194
test rdx, rdx
je 0x14001a194
mov rax, qword [r15 + 0x18]
movsxd rcx, dword [rax + 0x24]
test ecx, ecx
js 0x14001a19f
mov rax, qword [r15 + 0x28]
lea rcx, [rcx + rcx*8]
lea rsi, [rax + rcx*8]
lea rax, [r11 - 0x40]
test rax, rax
je 0x14001a15a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
lea r8d, [r12 + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14001a15a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [r12 + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14 + 8], rax
test rax, rax
je 0x14001a146
and dword [r14], ebx
mov rdx, r14
mov rcx, rsi
mov dword [r14 + 4], 0xa
call fcn.14001a9f4
xor esi, esi
test eax, eax
je 0x14001a129
lea rax, [rsp + 0x38]
test rax, rax
je 0x14001a16c
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14001a16c
mov eax, dword [r14]
test eax, eax
je 0x14001a16c
dec eax
mov dword [r14], eax
mov r13, qword [rcx + rax*8]
mov r12, r13
test r13, r13
je 0x14001a0d8
test byte [r12 + 0x40], 8
jne 0x14001a0b7
test byte [r12 + 0x40], 1
jne 0x14001a0b7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001a15f
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14001a57c
test eax, eax
je 0x14001a174
cmp dword [rbx + 0x6c], esi
jne 0x140019ebf
mov rcx, rbx
call fcn.14001a9ac
jmp 0x14001a0b4
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x140019ee2
cmp qword [rdi + 0x20], rsi
jne 0x14001a174
mov qword [rdi + 0x18], rbx
mov qword [rbx + 8], rsi
mov qword [rbx], rsi
jmp 0x14001a02a
mov r11d, dword [rbx + 0x30]
cmp r11d, dword [rdx + 0x30]
jge 0x140019eff
mov qword [rdi + 0x18], rbx
mov qword [rbx + 8], rdx
mov qword [rbx], rsi
mov qword [rdx], rbx
jmp 0x14001a02a
mov r8, qword [rdi + 0x30]
mov ebp, dword [rbx + 0x34]
test r8, r8
je 0x140019f22
cmp dword [rdi + 4], ebp
jbe 0x140019f22
lea rcx, [rbp*2]
add rcx, rbp
mov esi, dword [r8 + rcx*4 + 8]
jmp 0x140019f25
mov esi, dword [rdi + 0x40]
mov rax, qword [rdx + 8]
jmp 0x140019f38
cmp r11d, dword [rdx + 0x30]
jle 0x140019f3d
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140019f2b
mov r8, qword [rdx + 8]
jmp 0x140019f73
cmp r11d, dword [rdx + 0x30]
jne 0x140019f78
mov r9, qword [rdi + 0x30]
mov eax, dword [rdx + 0x34]
test r9, r9
je 0x140019f65
cmp dword [rdi + 4], eax
jbe 0x140019f65
lea rcx, [rax + rax*2]
mov eax, dword [r9 + rcx*4 + 8]
jmp 0x140019f68
mov eax, dword [rdi + 0x40]
cmp esi, eax
jle 0x140019f78
mov rdx, r8
mov r8, qword [r8 + 8]
test r8, r8
jne 0x140019f43
mov r9, qword [rdx + 8]
jmp 0x140019fb5
cmp r11d, dword [rdx + 0x30]
jne 0x140019ff7
mov r10, qword [rdi + 0x30]
mov r8d, dword [rdx + 0x34]
test r10, r10
je 0x140019fa2
cmp dword [rdi + 4], r8d
jbe 0x140019fa2
lea rcx, [r8 + r8*2]
mov eax, dword [r10 + rcx*4 + 8]
jmp 0x140019fa5
mov eax, dword [rdi + 0x40]
cmp esi, eax
jne 0x140019ff7
cmp ebp, r8d
jle 0x140019ff7
mov rdx, r9
mov r9, qword [r9 + 8]
test r9, r9
jne 0x140019f7e
jmp 0x140019ff7
cmp r11d, dword [rdx + 0x30]
jne 0x14001a001
mov r9, qword [rdi + 0x30]
mov r8d, dword [rdx + 0x34]
test r9, r9
je 0x140019fe0
cmp dword [rdi + 4], r8d
jbe 0x140019fe0
lea rcx, [r8 + r8*2]
mov eax, dword [r9 + rcx*4 + 8]
jmp 0x140019fe3
mov eax, dword [rdi + 0x40]
cmp esi, eax
jne 0x14001a001
cmp ebp, r8d
jne 0x14001a001
mov eax, dword [rdx + 0x38]
cmp dword [rbx + 0x38], eax
jl 0x14001a001
mov rdx, qword [r10]
lea r10, [rdx + 8]
cmp qword [r10], 0
jne 0x140019fbc
mov rax, qword [rdx]
mov rbp, qword [rsp + 0x80]
mov qword [rbx + 8], rdx
mov qword [rbx], rax
mov qword [rdx], rbx
mov rax, qword [rbx]
xor esi, esi
test rax, rax
je 0x14001a026
mov qword [rax + 8], rbx
jmp 0x14001a02a
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 0x20]
test rcx, rcx
jne 0x14001a041
mov qword [rdi + 0x20], rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rsi
jmp 0x14001a0b4
mov r8d, dword [rbx + 0x3c]
cmp r8d, dword [rcx + 0x3c]
jle 0x14001a05d
mov qword [rdi + 0x20], rbx
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x10], rsi
mov qword [rcx + 0x10], rbx
jmp 0x14001a0b4
mov rax, qword [rcx + 0x18]
jmp 0x14001a070
cmp r8d, dword [rcx + 0x3c]
jge 0x14001a088
mov rcx, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14001a063
jmp 0x14001a088
cmp r8d, dword [rcx + 0x3c]
jne 0x14001a091
mov eax, dword [rcx + 0x60]
cmp dword [rbx + 0x60], eax
jbe 0x14001a091
mov rcx, qword [rdx]
lea rdx, [rcx + 0x18]
cmp qword [rdx], rsi
jne 0x14001a077
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x10], rax
mov qword [rcx + 0x10], rbx
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001a0b0
mov qword [rax + 0x18], rbx
jmp 0x14001a0b4
mov qword [rdi + 0x20], rbx
mov rbx, rsi
cmp dword [r12 + 0x38], esi
jl 0x14001a0d8
movsxd rax, dword [r12 + 0x38]
lea rcx, [rax + rax*8]
mov rax, qword [r15 + 0x28]
lea r12, [rax + rcx*8]
test r12, r12
jne 0x140019e41
cmp dword [r13 + 0x34], esi
jl 0x14001a0fa
movsxd rax, dword [r13 + 0x34]
mov rdx, r14
lea rcx, [rax + rax*8]
mov rax, qword [r15 + 0x28]
lea rcx, [rax + rcx*8]
call fcn.14001a9f4
test eax, eax
je 0x14001a124
cmp dword [r13 + 0x3c], esi
jl 0x140019e06
movsxd rax, dword [r13 + 0x3c]
mov rdx, r14
lea rcx, [rax + rax*8]
mov rax, qword [r15 + 0x28]
lea rcx, [rax + rcx*8]
call fcn.14001a9f4
test eax, eax
jne 0x140019e06
mov r12d, dword [rsp + 0x30]
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x14001a146
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r12d
jmp 0x14001a1a1
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001a124
mov r12d, 1
jmp 0x14001a179
mov r12d, dword [rsp + 0x30]
test rbx, rbx
je 0x14001a129
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14001a129
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret