Function at 0x1401473a0
Capabilities:
Load assembly via iassembly
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x18]
mov rbx, rcx
test rax, rax
jne 0x1401473c7
mov edx, 1
xor r9d, r9d
mov r8d, edx
add rsp, 0x40
pop rbx
jmp fcn.1401476f0
test dword [rcx + 0x10], 0x80000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
jne 0x14014754a
mov esi, dword [rcx + 0x26c]
cmp rsi, rax
jne 0x140147450
xor edi, edi
xor r8d, r8d
mov dword [rcx + 0x26c], edi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x3b8]
lea edx, [rdi + 4]
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea r8d, [rdi + 4]
lea rdx, [rbx + 0x26c]
call qword [rbx + 0x3c8]
cmp rax, 4
je 0x1401476ba
xor eax, eax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
mov rdx, rsi
call fcn.140145f40
test eax, eax
je 0x140147434
nop dword [rax]
mov rcx, qword [rbx + 0x3b8]
lea rdx, [rsp + 0x50]
mov r8d, 2
call qword [rbx + 0x3c0]
cmp rax, 2
jne 0x140147434
test byte [rbx + 0x10], 0x80
je 0x14014748e
lea rcx, [rsp + 0x50]
call fcn.14015b580
movzx eax, word [rsp + 0x50]
xor r8d, r8d
lea ecx, [rax + rax*2]
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x3b8]
add edx, esi
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea rdx, [rsp + 0x58]
mov r8d, 4
call qword [rbx + 0x3c0]
cmp rax, 4
jne 0x140147434
test byte [rbx + 0x10], 0x80
je 0x1401474e1
lea rcx, [rsp + 0x58]
call fcn.14015b520
mov eax, dword [rsp + 0x58]
mov edx, eax
cmp rax, qword [rbx + 0x18]
je 0x140147504
mov rcx, rbx
mov esi, eax
call fcn.140145f40
test eax, eax
jne 0x140147460
jmp 0x140147434
movzx eax, word [rsp + 0x50]
xor edi, edi
xor r8d, r8d
lea ecx, [rax + rax*2]
mov dword [rsp + 0x60], edi
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x3b8]
add edx, esi
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x60]
call qword [rbx + 0x3c8]
cmp rax, 4
jmp 0x1401476b0
mov rbp, qword [rcx + 0x270]
cmp rbp, rax
jne 0x140147597
xor edi, edi
xor r8d, r8d
mov qword [rcx + 0x270], rdi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x3b8]
lea edx, [rdi + 8]
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea r8d, [rdi + 8]
lea rdx, [rbx + 0x270]
call qword [rbx + 0x3c8]
cmp rax, 8
jmp 0x14014742e
mov rdx, rbp
call fcn.140145f40
test eax, eax
je 0x140147434
nop word [rax + rax]
mov rcx, qword [rbx + 0x3b8]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [rbx + 0x3c0]
cmp rax, 8
jne 0x140147434
test byte [rbx + 0x10], 0x80
je 0x1401475e2
lea rcx, [rsp + 0x50]
call fcn.14015b540
mov rsi, qword [rsp + 0x50]
cmp rsi, 0xffff
ja 0x140147434
movzx eax, si
xor r8d, r8d
lea ecx, [rax + rax*4]
shl ecx, 2
movsxd rdx, ecx
mov rcx, qword [rbx + 0x3b8]
add rdx, 8
add rdx, rbp
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea rdx, [rsp + 0x58]
mov r8d, 8
call qword [rbx + 0x3c0]
cmp rax, 8
jne 0x140147434
test byte [rbx + 0x10], 0x80
je 0x140147649
lea rcx, [rsp + 0x58]
call fcn.14015b540
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rbx + 0x18]
je 0x14014766c
mov rcx, rbx
mov rbp, rdx
call fcn.140145f40
test eax, eax
jne 0x1401475b0
jmp 0x140147434
movzx eax, si
xor edi, edi
xor r8d, r8d
lea ecx, [rax + rax*4]
mov qword [rsp + 0x60], rdi
shl ecx, 2
movsxd rdx, ecx
mov rcx, qword [rbx + 0x3b8]
add rdx, 8
add rdx, rbp
call qword [rbx + 0x3d0]
mov rcx, qword [rbx + 0x3b8]
lea r8d, [rdi + 8]
lea rdx, [rsp + 0x60]
call qword [rbx + 0x3c8]
cmp rax, 8
jne 0x140147434
mov qword [rbx + 0x18], rdi
mov edx, 1
xor r9d, r9d
mov rcx, rbx
mov r8d, edx
call fcn.1401476f0
jmp 0x140147436