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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0xc8], 0
jge 0x140016fb5
mov eax, dword [rsp + 0xc8]
not eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x2c], 0xffffffff
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x20], eax
je 0x14001730e
lea r8, [rsp + 0x3c]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
call fcn.140015a00
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400172de
cmp dword [rsp + 0x3c], 0
je 0x140017009
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x70], rax
jmp 0x140017012
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
movabs rcx, 0x7fffffffffff
mov rax, qword [rax - 8]
and rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x58], 0
je 0x1400172dc
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x46
je 0x1400170b8
cmp dword [rsp + 0x24], 0x5a
je 0x1400172a6
cmp dword [rsp + 0x24], 0x66
je 0x1400170b8
cmp dword [rsp + 0x24], 0x6c
je 0x14001716d
cmp dword [rsp + 0x24], 0x70
je 0x1400170ab
jmp 0x1400172c6
mov dword [rsp + 0x38], 0
jmp 0x1400172d7
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
call fcn.140016060
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x14001716d
cmp dword [rsp + 0x28], 0x46
jne 0x140017143
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xa]
test eax, eax
jne 0x140017143
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
sub rax, 0x68
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp dword [rax + 0x48], 0xffffffff
je 0x140017143
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb8]
call fcn.140017b40
mov edx, 0x3a
mov rcx, qword [rsp + 0xb8]
call fcn.140017390
mov rcx, qword [rsp + 0x80]
call fcn.1400b15d0
mov r8d, eax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xb8]
call fcn.14003e9c0
jmp 0x1400172d7
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xa]
test eax, eax
jne 0x140017228
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
sub rax, 0x68
mov qword [rsp + 0x68], rax
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xb8]
call fcn.140017b40
test eax, eax
je 0x140017226
cmp dword [rsp + 0x28], 0x6c
jne 0x1400171d2
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.140017730
mov dword [rsp + 0x44], eax
jmp 0x1400171de
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov edx, 0x3a
mov rcx, qword [rsp + 0xb8]
call fcn.140017390
cmp dword [rsp + 0x48], 0
jl 0x140017209
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
jmp 0x140017215
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x4c], eax
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xb8]
call fcn.140031a40
jmp 0x1400172a4
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xa]
cmp eax, 1
jle 0x14001727c
mov r8d, 9
lea rdx, str._builtin
mov rcx, qword [rsp + 0xb8]
call fcn.14003e9c0
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xa]
mov edx, eax
mov rcx, qword [rsp + 0xb8]
call fcn.140031a40
mov edx, 0x5d
mov rcx, qword [rsp + 0xb8]
call fcn.140017390
jmp 0x1400172a4
mov edx, 0x40
mov rcx, qword [rsp + 0xb8]
call fcn.140017390
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0xb8]
call fcn.140031ac0
jmp 0x1400172d7
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax]
sub rax, rcx
mov dword [rsp + 0x40], eax
jmp 0x1400172d7
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
call fcn.140017390
jmp 0x140017047
jmp 0x1400172f9
cmp dword [rsp + 0x2c], 1
jne 0x1400172e9
jmp 0x14001730e
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x140016fb5
cmp dword [rsp + 0x40], 0
je 0x140017330
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
add rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
add rsp, 0xa8
ret