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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor esi, esi
mov r13, rdx
mov rbx, rcx
test rdx, rdx
je 0x18003a964
mov edi, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.18002a230
mov r14, rax
test rax, rax
je 0x18003a950
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.18013d7a0
mov dword [r14], edi
lea rdi, [rbx + 0x60]
mov eax, dword [r13 + 0x18]
mov rcx, qword [rdi]
mov r12, rcx
mov dword [rbx + 0x20], eax
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
mov qword [rsp + 0x80], rcx
cmp qword [rbx + 0x128], rsi
jne 0x18003a9fd
mov rbp, qword [r13 + 8]
mov rax, qword [r13]
test rbp, rbp
mov qword [rdi], rax
cmove rbp, rcx
cmp qword [rdi], rbp
jge 0x18003aa00
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call fcn.180039a90
mov esi, eax
test eax, eax
je 0x18003a920
jmp 0x18003aac3
mov eax, 7
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rcx + 0x24]
xor r14d, r14d
mov dword [rcx + 0x20], eax
movzx eax, byte [rcx + 0x10]
mov byte [rcx + 0x17], al
mov rcx, qword [rcx + 0x128]
test rcx, rcx
je 0x18003a9ea
mov eax, dword [rbx + 0x24]
mov r8, rbx
mov dword [rbx + 0x20], eax
call fcn.180041240
mov esi, eax
mov rax, qword [rbx + 0x120]
mov rdx, qword [rax]
test rdx, rdx
je 0x18003a9b3
nop
mov rcx, qword [rdx + 0x40]
mov qword [rdx + 0x20], rcx
mov rdx, rcx
test rcx, rcx
jne 0x18003a9a0
mov rdx, qword [rax]
mov rcx, rdx
call fcn.180037180
test rax, rax
je 0x18003ab61
test esi, esi
jne 0x18003ab61
mov edx, dword [rax + 0x30]
mov rcx, rbx
mov rdi, qword [rax + 0x20]
call fcn.18003a5c0
mov esi, eax
mov rax, rdi
test rdi, rdi
jne 0x18003a9c4
jmp 0x18003ab61
mov rax, qword [rbx + 0x60]
lea rdi, [rbx + 0x60]
mov qword [rsp + 0x80], rax
mov r12, rax
mov qword [rdi], rsi
mov r13, qword [rsp + 0x80]
mov qword [rsp + 0x70], r15
nop dword [rax]
cmp qword [rdi], r12
jge 0x18003aab4
lea rax, [rsp + 0x88]
mov dword [rsp + 0x80], 0
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.180038e30
mov r15d, dword [rsp + 0x80]
mov esi, eax
test r15d, r15d
jne 0x18003aa80
mov eax, dword [rbx + 0xb8]
add rax, qword [rbx + 0x68]
mov rcx, qword [rdi]
cmp rax, rcx
jne 0x18003aa80
mov rax, r13
sub rax, rcx
mov rcx, qword [rbx + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r15, rax
xor ebp, ebp
test esi, esi
jne 0x18003aab4
cmp ebp, r15d
jae 0x18003aa10
cmp qword [rdi], r12
jge 0x18003aab4
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call fcn.180039a90
inc ebp
mov esi, eax
test eax, eax
je 0x18003aa86
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r13, r13
je 0x18003ab28
mov rax, qword [rbx + 0xc8]
mov ebp, dword [r13 + 0x1c]
add rax, 4
mov rcx, qword [rbx + 0x128]
imul rax, rbp
mov qword [rsp + 0x78], rax
test rcx, rcx
je 0x18003aaf6
lea rdx, [r13 + 0x24]
call fcn.180041330
mov ebp, dword [r13 + 0x1c]
mov esi, eax
test esi, esi
jne 0x18003ab28
nop word [rax + rax]
cmp ebp, dword [rbx + 0x3c]
jae 0x18003ab28
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r14
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.180039a90
inc ebp
mov esi, eax
test eax, eax
je 0x18003ab00
test r14, r14
je 0x18003ab5a
cmp dword [r14 + 8], 0
je 0x18003ab52
lea rbx, [r14 + 0x10]
mov ebp, 0x3e
nop dword [rax]
mov rcx, qword [rbx]
call fcn.1800368e0
lea rbx, [rbx + 8]
sub rbp, 1
jne 0x18003ab40
mov rcx, r14
call fcn.18002a420
test esi, esi
jne 0x18003ab61
mov qword [rdi], r12
mov eax, esi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x10], edx
push rsi
push r14
sub rsp, 0x38
mov r14d, dword [rcx + 0x30]
mov rsi, rcx
test r14d, r14d
jne 0x18003db21
mov eax, dword [rcx + 0x80]
cmp r8d, eax
jge 0x18003db21
xor ecx, ecx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], r13
cmp edx, 1
mov r13d, ecx
mov qword [rsp + 0x20], r15
setne r13b
add r13d, r8d
mov r15d, r13d
cmp r13d, eax
jge 0x18003da6f
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
movsxd rax, r13d
mov qword [rsp + 0x30], r12
imul r12, rax, 0x38
nop word [rax + rax]
mov rax, qword [rsi + 0x78]
mov rbp, qword [r12 + rax + 0x10]
test rbp, rbp
je 0x18003da4a
cmp dword [rbp + 8], 0
je 0x18003da42
lea rbx, [rbp + 0x10]
mov edi, 0x3e
nop dword [rax]
mov rcx, qword [rbx]
call fcn.1800368e0
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x18003da30
mov rcx, rbp
call fcn.18002a420
inc r15d
add r12, 0x38
cmp r15d, dword [rsi + 0x80]
jl 0x18003da10
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov dword [rsi + 0x80], r13d
cmp edx, 1
jne 0x18003dadd
movsxd rax, r13d
imul rbx, rax, 0x38
add rbx, qword [rsi + 0x78]
cmp dword [rbx + 0x20], 0
je 0x18003dac8
mov rcx, qword [rsi + 0x58]
mov r8, qword [rcx]
test r8, r8
je 0x18003dac8
lea rax, [0x180167ae0]
cmp r8, rax
jne 0x18003dac2
mov rdx, qword [rsi + 0xc8]
mov eax, dword [rbx + 0x1c]
add rdx, 4
imul rdx, rax
call qword [r8 + 0x20]
mov r14d, eax
mov ecx, dword [rbx + 0x1c]
mov dword [rsi + 0x3c], ecx
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
ret
cmp qword [rsi + 0x128], 0
jne 0x18003daf1
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x18003dac8
test r13d, r13d
je 0x18003db05
lea eax, [r13 - 1]
movsxd rcx, eax
imul rcx, rcx, 0x38
add rcx, qword [rsi + 0x78]
mov rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
jmp 0x18003a890
mov eax, r14d
add rsp, 0x38
pop r14
pop rsi
ret