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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x18], edi
sete dil
test edi, edi
jne 0x10018f791
movzx eax, word [rcx + 0x2a]
mov dword [rcx + 0x3c], eax
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x10018f815
dec ecx
je 0x10018f7fc
dec ecx
je 0x10018f7cc
lea rax, [0x1004e0318]
lea r8, [0x1004e02b8]
lea rdx, [0x1004e0310]
mov r9d, 0x67d
mov ecx, 1
mov qword [rsp + 0x20], rax
call fcn.1001522c0
jmp 0x10018f827
call fcn.10006aec0
mov dword [rbx + 0x10], eax
test edi, edi
je 0x10018f827
lea eax, [rax + rax*4]
shr eax, 1
mov dword [rbx + 0x3c], eax
call fcn.10006bea0
mov ecx, dword [rbx + 0x3c]
lea eax, [rax + rax*2]
cmp ecx, eax
ja 0x10018f7f7
call fcn.10006bea0
lea ecx, [rax + rax*2]
mov dword [rbx + 0x3c], ecx
jmp 0x10018f827
call fcn.10006bea0
mov dword [rbx + 0x10], eax
test edi, edi
je 0x10018f827
call fcn.10006bea0
lea ecx, [rax + rax*2]
mov dword [rbx + 0x3c], ecx
jmp 0x10018f827
mov dword [rbx + 0x10], 1
test edi, edi
je 0x10018f827
mov dword [rbx + 0x3c], 3
mov eax, dword [rbx + 0x10]
cmp dword [rbx + 0x3c], eax
jb 0x10018f841
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x10018f870
mov edx, 0x1c
xor r8d, r8d
lea ecx, [rdx + 9]
call fcn.100197a50
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x30
cmp dword [rcx + 0x18], 0
mov rbx, rcx
jne 0x10018f898
mov r8d, dword [rcx + 0x3c]
mov rax, qword [rcx + 0x20]
xor edx, edx
div r8
mov rbp, rax
jmp 0x10018f89c
mov rbp, qword [rcx + 0x20]
cmp dword [rcx + 0x1c], 2
mov qword [rsp + 0x60], r14
jne 0x10018f8b1
call fcn.10006aec0
mov r14d, eax
jmp 0x10018f8ba
call fcn.10006adc0
mov r14d, dword [rax + 0x18]
xor r15d, r15d
mov edi, r15d
cmp dword [rbx + 0x3c], r15d
jbe 0x10018fa43
mov qword [rsp + 0x58], r12
mov r12d, 0xfffeff33
mov qword [rsp + 0x50], rsi
nop word [rax + rax]
xor edx, edx
mov eax, edi
div r14d
cmp dword [rbx + 0x1c], 2
jne 0x10018f8f8
mov ecx, edx
call fcn.100184ab0
mov esi, eax
jmp 0x10018f8fb
movzx esi, dl
mov rcx, qword [rbx + 0x30]
call fcn.1001908f0
test eax, eax
jne 0x10018f9c5
call fcn.10018bb00
movzx r8d, sil
mov r9, rbp
mov r10, qword [rax]
mov edx, edi
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [r10 + 0x18]
mov rsi, rax
test rax, rax
je 0x10018fa3e
mov eax, dword [rax + 0x40]
lea rcx, [rsi + 0x18]
add qword [rbx + 0x50], rax
mov eax, dword [rsi + 0x40]
add eax, 0xcd
add qword [rbx + 0x60], rax
mov eax, dword [rsi + 0x40]
mov qword [rbx + 0x48], rax
mov eax, dword [rsi + 0x40]
add eax, 0xcd
mov qword [rbx + 0x58], rax
cmp qword [rbx + 0x70], r15
lea rax, [rbx + 0x70]
je 0x10018f978
nop dword [rax]
mov rax, qword [rax]
cmp qword [rax], r15
jne 0x10018f970
mov qword [rcx], r15
mov qword [rax], rcx
mov edx, 1
mov rcx, rsi
mov dword [rsi + 0x20], r15d
mov word [rsi + 0x24], r15w
call fcn.10018e620
lea r11, [rbx + 0x88]
lea rcx, [rsi + 8]
mov rax, qword [r11]
inc dword [r11 + 0x10]
mov qword [rcx], rax
mov rax, qword [r11]
mov qword [rax + 8], rcx
mov qword [r11], rcx
mov qword [rcx + 8], r11
lea rcx, [rbx + 0xc0]
call fcn.100105230
jmp 0x10018f9f9
cmp rbp, r12
ja 0x10018fa2d
cmp ebp, 0xff33
jb 0x10018fa26
lea ecx, [rbp + 0x100cc]
and ecx, 0xffff0000
lea eax, [rcx - 0xcd]
cmp eax, r12d
ja 0x10018fa2d
add qword [rbx + 0x50], rax
add qword [rbx + 0x60], rcx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x58], rcx
inc edi
cmp edi, dword [rbx + 0x3c]
jb 0x10018f8e0
mov eax, 1
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rbp
ret
mov ecx, 0x20
jmp 0x10018fa32
mov ecx, 0x21
xor r8d, r8d
lea edx, [r8 + 0x1c]
call fcn.100197a50
mov eax, r15d
jmp 0x10018fa09
mov eax, 1
jmp 0x10018fa13