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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r11d, ecx
mov dword [rsp + 0x2c], ecx
mov r13, qword [0x1401fbc40]
lea r15, [r13 + 0x5530]
xor r8d, r8d
test ecx, ecx
je 0x14004299b
mov edx, ecx
mov rcx, r15
call fcn.140021490
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140042d8d
mov byte [rsp + 0x20], 0
mov r12d, dword [rax + 0xc4]
shl r12d, 0x1d
sar r12d, 0x1d
mov eax, dword [rax + 0xc4]
shl eax, 0x1a
sar eax, 0x1d
mov dword [rsp + 0x28], eax
xor r8d, r8d
jmp 0x1400429af
mov rbx, r8
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
mov r12d, r8d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], r12d
mov esi, r8d
mov dword [rsp + 0x3c], r8d
mov edi, r8d
mov dword [rsp + 0x38], edi
mov r10, r8
mov qword [rsp + 0x40], r8
mov ebp, r8d
cmp dword [r15], 0
jle 0x140042b74
mov r15, r8
mov edx, 1
mov r12d, dword [rsp + 0x20]
nop word [rax + rax]
mov rax, qword [r13 + 0x5538]
mov r14, qword [r15 + rax + 8]
test r14, r14
je 0x140042b50
test r11d, r11d
je 0x140042a35
cmp dword [r14], r11d
je 0x140042b50
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x140042b50
lea rcx, [rax]
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140042a20
cmp dword [rcx], r11d
jne 0x140042b50
mov eax, dword [r14 + 0x10]
shr eax, 0xb
test al, 1
movzx r12d, r12b
cmovne r12d, edx
test r11d, r11d
je 0x140042a81
mov edx, r8d
cmp dword [r13 + 0x5540], 0
jle 0x140042a81
mov rcx, r8
nop dword [rax + rax]
mov rax, qword [r13 + 0x5548]
cmp qword [rax + rcx + 0x10], r14
jne 0x140042a72
mov dword [rax + rcx], r8d
inc edx
add rcx, 0x40
cmp edx, dword [r13 + 0x5540]
jl 0x140042a60
test rbx, rbx
je 0x140042aa0
mov rdx, r14
mov rcx, rbx
call fcn.14003d540
mov edx, dword [rbx]
mov ecx, dword [r14]
call fcn.140043830
mov r10, qword [rsp + 0x40]
cmp edi, esi
jne 0x140042b36
lea ebx, [rdi + 1]
test esi, esi
je 0x140042aba
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x140042abf
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, esi
jle 0x140042b31
mov rax, qword [0x1401fbc40]
test rax, rax
je 0x140042ada
inc dword [rax + 0xf4]
movsxd rcx, ebx
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140042b23
movsxd r8, edi
shl r8, 3
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x1401fbc40]
test rdx, rdx
je 0x140042b18
dec dword [rdx + 0xf4]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r10, rsi
mov qword [rsp + 0x40], rsi
mov esi, ebx
mov dword [rsp + 0x3c], ebx
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
mov qword [r10 + rax*8], r14
inc edi
mov dword [rsp + 0x38], edi
mov r11d, dword [rsp + 0x2c]
xor r8d, r8d
mov edx, 1
inc ebp
add r15, 0x10
cmp ebp, dword [r13 + 0x5530]
jl 0x1400429f0
mov dword [rsp + 0x20], r12d
mov r12d, dword [rsp + 0x24]
lea r15, [r13 + 0x5530]
test rbx, rbx
je 0x140042ba2
mov ecx, dword [rsp + 0x28]
lea ecx, [rcx*8]
mov edx, r12d
xor edx, dword [rbx + 0xc4]
and edx, 0xffffffc0
mov eax, ecx
xor eax, r12d
and eax, 0xffffffc7
xor edx, eax
xor edx, ecx
mov dword [rbx + 0xc4], edx
mov rcx, qword [r13 + 0x5598]
lea rax, [rcx + 4]
xor r12d, r12d
mov r9d, r12d
test rcx, rcx
cmovne r9, rax
test r9, r9
je 0x140042c16
nop
mov r8d, dword [r9 + 0x14]
test r8d, r8d
je 0x140042beb
mov edx, r12d
test edi, edi
jle 0x140042beb
mov rcx, r10
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x140042be7
inc edx
add rcx, 8
cmp edx, edi
jl 0x140042bd3
jmp 0x140042beb
mov dword [r9 + 0x14], r11d
movsxd r8, dword [r9 - 4]
add r8, r9
movsxd rcx, dword [r13 + 0x5590]
mov rdx, qword [r13 + 0x5598]
add rdx, 4
add rdx, rcx
mov r9, r12
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x140042bc0
cmp edi, 1
jle 0x140042c3a
movsxd rdx, edi
cmp rdx, 1
jbe 0x140042c3a
lea r9, [0x14003ba10]
mov r8d, 8
mov rcx, r10
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r14, qword [rsp + 0x40]
test edi, edi
jle 0x140042cf1
mov rsi, r14
nop word [rax + rax]
mov rbx, qword [rsi]
test byte [r13 + 0x560c], 0x20
je 0x140042c6b
mov edx, dword [rbx]
lea rcx, str._docking__DockContextRemoveNode_0x_08X_n
call fcn.140044620
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140042c7e
mov qword [rax + 0x428], r12
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140042caa
mov ecx, 0x20
nop dword [rax]
cmp rcx, 0x30
jge 0x140042caa
cmp qword [rdx + rcx], rbx
jne 0x140042ca4
mov rax, qword [rbx + 0x18]
mov qword [rcx + rax], r12
add rcx, 8
jmp 0x140042c90
xor r8d, r8d
mov edx, dword [rbx]
lea rcx, [r13 + 0x5530]
call fcn.140021630
mov rcx, rbx
call fcn.14003ce90
mov rax, qword [0x1401fbc40]
test rax, rax
je 0x140042cd5
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsi, 8
sub rdi, 1
jne 0x140042c50
mov rbx, qword [rsp + 0x30]
cmp dword [rsp + 0x2c], r12d
jne 0x140042d4b
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x140042d20
mov qword [r15], r12
mov rax, qword [0x1401fbc40]
test rax, rax
je 0x140042d16
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r15 + 8], r12
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x140042d6c
mov qword [r15 + 0x10], r12
mov rax, qword [0x1401fbc40]
test rax, rax
je 0x140042d3f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r15 + 0x18], r12
jmp 0x140042d6c
cmp byte [rsp + 0x20], r12b
je 0x140042d6c
mov qword [rbx + 0x98], rbx
or dword [rbx + 8], 0x800
mov eax, dword [rbx + 0xc]
or eax, dword [rbx + 4]
or eax, dword [rbx + 8]
mov dword [rbx + 0x10], eax
test r14, r14
je 0x140042d8d
mov rax, qword [0x1401fbc40]
test rax, rax
je 0x140042d83
dec dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret