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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push r12
push r14
sub rsp, 0x188
cmp dword [r8 + 4], 0
mov r12, r8
mov rbx, rdx
mov rbp, rcx
je 0x140020535
cmp dword [r8 + 0x10], 0
jbe 0x14002093d
cmp dword [r8 + 0x58], 0
jbe 0x14002093d
mov r14d, 3
jmp 0x140020565
mov eax, dword [r8 + 0x10]
test eax, eax
je 0x14002054c
cmp dword [r8 + 0x58], 0
jbe 0x14002054c
mov r14d, 2
jmp 0x140020565
test eax, eax
je 0x14002093d
cmp dword [r8 + 0x58], 0
jne 0x14002093d
mov r14d, 1
mov edx, dword [r8 + 0xc]
xor eax, eax
lea rcx, [0x1400e0890]
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x50], rax
call fcn.14003da90
cmp r14d, 3
mov qword [rsp + 0x48], rax
jne 0x1400205b6
mov edx, dword [r12 + 0xc]
lea rcx, [0x1400e0890]
xor r8d, r8d
call fcn.14003db60
lea rcx, [0x1400e0890]
mov edx, eax
call fcn.14003da90
mov qword [rsp + 0x50], rax
mov edi, dword [r12 + 0x5c]
mov rdx, qword [rbp + 0x28]
lea r8, [rsp + 0x1c0]
or edi, dword [r12 + 0x14]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 0x1e
call fcn.140011320
test eax, eax
je 0x1400206b8
xor eax, eax
mov ecx, 0
mov qword [rsp + 0x60], rax
or dword [rsp + 0x64], 1
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov eax, dword [r12 + 0x58]
mov dword [rsp + 0x60], 0x40
add eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
je 0x140020673
lea rdx, [rsp + 0x6c]
nop
nop
test ecx, ecx
jne 0x14002065b
lea rax, [r12 + 8]
jmp 0x140020660
lea rax, [r12 + 0x50]
mov eax, dword [rax + 0xc]
add ecx, 1
add rdx, 4
mov dword [rdx - 4], eax
cmp ecx, dword [rsp + 0x68]
jb 0x140020650
mov rcx, qword [rbp + 0x28]
xor r9d, r9d
lea rax, [rsp + 0xa0]
cmp dword [r12 + 4], r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
setne r9b
mov r8d, edi
add r9d, 1
mov edx, 5
mov qword [rsp + 0x20], rax
call fcn.1400672b0
test eax, eax
jne 0x1400206d0
xor eax, eax
mov rdi, qword [rsp + 0x178]
add rsp, 0x188
pop r14
pop r12
pop rbp
pop rbx
ret
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x170], r13
mov dword [rbx], 0x1a0
mov qword [rsp + 0x168], r15
mov dword [rbx + 0x108], 0x98
xor r8d, r8d
lea rcx, [rsp + 0xa8]
lea r9, [rbx + 0x114]
lea rdx, [rbx + 0x11c]
nop
nop
nop
nop
cmp r14d, 3
mov eax, dword [rcx + 1]
mov dword [rdx - 4], eax
movzx eax, byte [rcx]
mov dword [r9], eax
mov eax, dword [rcx + 5]
mov dword [rdx], eax
jne 0x14002074d
add r8d, 1
add r9, 0x48
add rcx, 0xd
add rdx, 0x48
cmp r8d, 2
jb 0x140020720
lea rax, [rsp + 0x48]
mov edx, 0x10
xor r13d, r13d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x1c8], rdx
nop
nop
nop
xor eax, eax
cmp r14d, 3
cmove eax, r13d
test r13d, r13d
lea rcx, [rax + rax*8]
lea r8, [rbx + rcx*8 + 0x110]
jne 0x140020792
lea r15, [r12 + 8]
jmp 0x140020797
lea r15, [r12 + 0x50]
mov dword [r8], 0x48
mov eax, dword [r15 + 0x38]
lea rcx, [rsp + 0xc0]
mov dword [rdx + r8], eax
mov esi, dword [r15 + 0x34]
xor edx, edx
mov dword [r8 + 0x24], esi
mov ebp, dword [r15 + 0x38]
mov dword [r8 + 0x28], ebp
mov edi, dword [r15 + 0x2c]
mov dword [r8 + 0x20], edi
mov ebx, dword [r15 + 0x30]
mov dword [r8 + 0x1c], ebx
mov r8d, 0x9c
call fcn.14007cd30
mov eax, dword [r15 + 0x40]
mov dword [rsp + 0x130], edi
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0xec], eax
mov eax, dword [r15 + 0x44]
mov dword [rsp + 0xf0], eax
mov eax, dword [r15 + 0x3c]
mov dword [rsp + 0x12c], ebx
mov rbx, qword [rdi]
mov dword [rsp + 0x138], ebp
mov rbp, qword [rsp + 0x1b0]
mov dword [rsp + 0xf4], eax
mov word [rsp + 0xe4], 0x9c
mov dword [rsp + 0x128], esi
mov rax, qword [rbx]
lea rcx, [rsp + 0xc0]
mov r8, rbx
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov edx, r13d
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rbx + 0x18]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x40]
call fcn.140040970
mov r8d, dword [rsp + 0xf4]
lea rcx, [rbp + 0x40]
mov edx, r13d
call fcn.140040af0
lea r8, [rsp + 0xc0]
lea rcx, [rbp + 0x40]
mov edx, r13d
call fcn.1400409d0
lea rcx, [0x1400e0890]
mov rdx, rbx
call fcn.14003a020
lea rcx, [0x1400e0890]
mov edx, eax
call fcn.14003ae60
test al, 4
je 0x1400208c2
lea rcx, [rbp + 0x40]
mov r8d, 4
mov edx, r13d
call fcn.140040a00
cmp r14d, 1
je 0x140020901
cmp r14d, 2
je 0x140020901
mov rdx, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1b8]
add rdi, 8
add rdx, 4
add r13d, 1
mov qword [rsp + 0x40], rdi
cmp r13d, 2
mov qword [rsp + 0x1c8], rdx
jb 0x140020770
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rbp + 0xf4]
mov r8d, 0x1a0
call fcn.14007d090
mov r15, qword [rsp + 0x168]
mov r13, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x180]
mov eax, 1
jmp 0x1400206ba
xor eax, eax
add rsp, 0x188
pop r14
pop r12
pop rbp
pop rbx
ret