Function at 0x140056580
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1400d0940]
xor edi, edi
movsxd r12, ecx
mov r15, r8
mov r13d, edi
test rax, rax
jne 0x1400565c6
xor edx, edx
lea rcx, [0x1400a5f70]
call fcn.140057380
mov qword [0x1400d0940], rax
test rax, rax
je 0x1400566bf
cmp qword [0x1400d0948], rdi
jne 0x1400565f6
lea rdx, [0x1400a60e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0948], rax
test rax, rax
je 0x1400566bf
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0950], rdi
jne 0x140056626
lea rdx, [0x1400a60f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0950], rax
test rax, rax
je 0x1400566bf
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0960], rdi
jne 0x140056652
lea rdx, [0x1400a5f90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0960], rax
test rax, rax
je 0x1400566bf
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0958], rdi
jne 0x14005667e
lea rdx, [0x1400a6110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0958], rax
test rax, rax
je 0x1400566bf
mov rax, qword [0x1400d0940]
cmp qword [0x1400d0970], rdi
jne 0x1400566a3
lea rdx, [0x1400a5fb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0970], rax
test rax, rax
je 0x1400566bf
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x1400d0948]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400566ce
xor eax, eax
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x80], rbx
movups xmmword [r15], xmm0
mov qword [rsp + 0x48], rsi
mov r8, r15
movups xmmword [r15 + 0x10], xmm0
xor edx, edx
mov dword [r15], 0x20
mov rcx, rbp
mov qword [rsp + 0x40], r14
call qword [0x1400d0950]
test eax, eax
je 0x14005687c
lea r14, str.0__n_
mov dword [rsp + 0x98], edi
mov rsi, rdi
cmp r12d, 1
jae 0x14005684f
xor r9d, r9d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov rdx, r15
mov dword [rsp + 0x28], edi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 2]
call qword [0x1400d0960]
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x140056846
lea ebx, [rax + 4]
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140056846
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 2]
call qword [0x1400d0960]
test eax, eax
je 0x140056846
cmp word [rsi], 0
mov rdi, rsi
je 0x14005682c
lea r14, [r14 + r12*8]
mov rbx, qword [r14]
cmp word [rbx], 0
je 0x140056802
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rdi
call fcn.140072770
test rax, rax
jne 0x1400567fc
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400567e0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x1400567c0
jmp 0x140056802
cmp word [rbx], 0
jne 0x14005682c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140056810
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x1400567b2
jmp 0x140056832
cmp word [rdi], 0
jne 0x1400568a6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
lea r14, str.0__n_
jmp 0x14005684f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
inc r13d
movups xmmword [r15], xmm0
mov r8, r15
mov edx, r13d
movups xmmword [r15 + 0x10], xmm0
mov rcx, rbp
mov dword [r15], 0x20
call qword [0x1400d0950]
test eax, eax
jne 0x140056710
mov rcx, rbp
call qword [0x1400d0970]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x88]
mov qword [rax], rbp
mov eax, 1
jmp 0x140056887