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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
push rdi
push r13
push r14
push r15
mov eax, 0x20
call fcn.1402632b0
sub rsp, rax
mov edi, dword [rsp + 0x88]
xor eax, eax
mov r13d, ecx
cmp edi, 3
je 0x14022424f
xor edx, edx
mov qword [rsp], rdx
cmp edi, 6
jne 0x14022425a
mov eax, 1
mov edx, eax
mov qword [rsp], rax
mov r14, qword [rsp + 0x98]
test eax, eax
mov r15, qword [rsp + 0xa0]
mov r10, qword [r14]
mov r11, qword [r15]
mov rbp, r10
cmove rbp, r11
test rbp, rbp
je 0x14022456b
mov qword [rsp + 0x50], rbx
test eax, eax
mov qword [rsp + 0x18], rsi
mov rbx, r11
mov esi, dword [rsp + 0x80]
cmove rbx, r10
mov qword [rsp + 0x10], r12
mov r12d, dword [rsp + 0x90]
nop dword [rax]
mov r8, rbx
mov rcx, rbx
mov r9, rbx
test rbx, rbx
je 0x140224549
test rdx, rdx
je 0x1402242cd
mov rbx, qword [rbx + 0x18]
jmp 0x1402242d1
mov rbx, qword [rbx + 0x10]
mov rdx, qword [rcx]
test r12d, r12d
js 0x1402242e8
cmp r12d, dword [rdx + 0x44]
jne 0x14022453c
jmp 0x140224372
test r13d, r13d
je 0x1402242f7
cmp r13d, dword [rdx + 0x18]
jne 0x14022453c
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140224308
test dword [rdx + 0x1c], eax
je 0x14022453c
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140224319
test dword [rdx + 0x20], eax
je 0x14022453c
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14022432a
test dword [rdx + 0x24], eax
je 0x14022453c
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14022433b
test dword [rdx + 0x28], eax
je 0x14022453c
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x14022434c
cmp eax, dword [rdx + 0x2c]
jne 0x14022453c
test sil, 0x1f
je 0x14022435f
mov eax, dword [rdx + 0x3c]
and eax, esi
test al, 0x1f
je 0x14022453c
test sil, 0x20
je 0x140224372
mov eax, dword [rdx + 0x3c]
and eax, esi
test al, 0x20
je 0x14022453c
cmp edi, 1
jne 0x1402243cf
cmp dword [rcx + 8], 0
jne 0x14022453c
cmp rcx, r11
je 0x1402243c3
mov rax, qword [r8 + 0x10]
cmp rcx, r10
jne 0x140224392
mov r10, rax
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x14022439f
mov qword [rdx + 0x10], rax
mov rdx, qword [r8 + 0x10]
test rdx, rdx
je 0x1402243b0
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov qword [r11 + 0x10], rcx
mov qword [rcx + 0x18], r11
mov r11, rcx
mov qword [r8 + 0x10], 0
mov dword [rcx + 8], 1
jmp 0x14022453c
cmp edi, 4
jne 0x140224429
cmp dword [rcx + 8], 0
je 0x14022453c
cmp rcx, r11
je 0x14022453c
mov rax, qword [r8 + 0x10]
cmp rcx, r10
jne 0x1402243f3
mov r10, rax
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x140224400
mov qword [rdx + 0x10], rax
mov rdx, qword [r8 + 0x10]
test rdx, rdx
je 0x140224411
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov qword [r11 + 0x10], rcx
mov qword [rcx + 0x18], r11
mov r11, rcx
mov qword [r8 + 0x10], 0
jmp 0x14022453c
cmp edi, 3
jne 0x14022448a
cmp dword [rcx + 8], 0
je 0x14022453c
cmp rcx, r10
je 0x140224480
mov rax, qword [r8 + 0x18]
cmp rcx, r11
jne 0x140224449
mov r11, rax
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x140224456
mov qword [rdx + 0x18], rax
mov rdx, qword [r8 + 0x18]
test rdx, rdx
je 0x140224467
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r10 + 0x18], rcx
xor eax, eax
mov qword [rcx + 0x10], r10
mov r10, rcx
mov qword [r8 + 0x18], rax
mov dword [rcx + 8], eax
jmp 0x14022453c
xor eax, eax
mov dword [rcx + 8], eax
jmp 0x14022453c
cmp edi, 6
jne 0x1402244e1
cmp dword [rcx + 8], 0
je 0x14022453c
cmp rcx, r10
je 0x14022453c
mov rax, qword [r8 + 0x18]
cmp rcx, r11
jne 0x1402244ae
mov r11, rax
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x1402244bb
mov qword [rdx + 0x18], rax
mov rdx, qword [r8 + 0x18]
test rdx, rdx
je 0x1402244cc
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r10 + 0x18], rcx
mov qword [rcx + 0x10], r10
mov r10, rcx
mov qword [r8 + 0x18], 0
jmp 0x14022453c
cmp edi, 2
jne 0x14022453c
mov rdx, qword [r9 + 0x10]
cmp r10, rcx
jne 0x1402244f8
mov r10, rdx
add r8, 0x18
jmp 0x140224508
mov rax, qword [rcx + 0x18]
lea r8, [rcx + 0x18]
mov qword [rax + 0x10], rdx
mov rdx, qword [r9 + 0x10]
mov rax, qword [r8]
cmp r11, rcx
jne 0x140224513
mov r11, rax
mov dword [rcx + 8], 0
test rdx, rdx
je 0x140224523
mov qword [rdx + 0x18], rax
mov rdx, qword [r8]
test rdx, rdx
je 0x140224533
mov rax, qword [r9 + 0x10]
mov qword [rdx + 0x10], rax
xor eax, eax
mov qword [r9 + 0x10], rax
mov qword [r8], rax
mov rdx, qword [rsp]
cmp rcx, rbp
jne 0x1402242b0
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x10]
mov qword [r14], r10
mov qword [r15], r11
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov qword [r14], r10
mov qword [r15], r11
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret