Function at 0x1405d7b38
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 [0x1406df080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15d, ecx
mov rbx, qword [0x1406e0940]
xor r11d, r11d
test ecx, ecx
je 0x1405d7bab
mov edx, ecx
mov rcx, rbx
call fcn.1405d31a8
mov rdi, rax
test rax, rax
je 0x1405d7e53
lea r12, [rax + 0xb0]
mov r14d, dword [r12]
shl r14d, 0x1d
sar r14d, 0x1d
mov r13d, dword [r12]
shl r13d, 0x1a
sar r13d, 0x1d
jmp 0x1405d7bba
mov rdi, r11
mov r14d, r11d
mov r12d, 0xb0
mov r13d, r11d
mov dword [rsp + 0x30], r13d
mov byte [rsp + 0x28], r11b
mov dword [rsp + 0x3c], r11d
mov esi, r11d
mov dword [rsp + 0x38], esi
mov rbp, r11
mov qword [rsp + 0x40], r11
mov ecx, r11d
mov dword [rsp + 0x20], ecx
mov r10d, 1
cmp dword [rbx + 0x2f80], r11d
jle 0x1405d7cdb
mov rsi, r11
mov r13d, dword [rsp + 0x28]
mov rax, qword [rbx + 0x2f88]
mov rdx, qword [rsi + rax + 8]
mov qword [rsp + 0x28], rdx
test rdx, rdx
je 0x1405d7cb1
test r15d, r15d
je 0x1405d7c44
cmp dword [rdx], r15d
je 0x1405d7cb1
mov rax, rdx
cmp qword [rdx + 0x10], r11
je 0x1405d7c3f
mov rcx, qword [rdx + 0x10]
mov rax, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1405d7c2f
mov ecx, dword [rsp + 0x20]
cmp dword [rax], r15d
jne 0x1405d7cb1
mov eax, dword [rdx + 8]
shr eax, 0xb
test r10b, al
movzx r13d, r13b
cmovne r13d, r10d
test r15d, r15d
je 0x1405d7c8a
mov ecx, r11d
cmp dword [rbx + 0x2f90], r11d
jle 0x1405d7c8a
mov rax, r11
mov r8, qword [rbx + 0x2f98]
cmp qword [rax + r8 + 0x10], rdx
jne 0x1405d7c7b
mov dword [rax + r8], r11d
add ecx, r10d
add rax, 0x40
cmp ecx, dword [rbx + 0x2f90]
jl 0x1405d7c69
test rdi, rdi
je 0x1405d7c97
mov rcx, rdi
call fcn.1405d42b0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1405d935c
mov ecx, dword [rsp + 0x20]
xor r11d, r11d
lea r10d, [r11 + 1]
add ecx, r10d
mov dword [rsp + 0x20], ecx
add rsi, 0x10
cmp ecx, dword [rbx + 0x2f80]
jl 0x1405d7bfa
mov dword [rsp + 0x28], r13d
mov rbp, qword [rsp + 0x40]
mov esi, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x30]
test rdi, rdi
je 0x1405d7cff
xor r14d, dword [r12]
and r14d, 7
xor dword [r12], r14d
lea eax, [r13*8]
xor eax, dword [r12]
and eax, 0x38
xor dword [r12], eax
mov rcx, qword [rbx + 0x2fe8]
test rcx, rcx
je 0x1405d7d69
add rcx, 4
je 0x1405d7d69
mov r9d, dword [rcx + 0x14]
test r9d, r9d
je 0x1405d7d3e
mov r8d, r11d
test esi, esi
jle 0x1405d7d3e
mov rdx, rbp
mov rax, qword [rdx]
cmp dword [rax], r9d
je 0x1405d7d3a
add r8d, r10d
add rdx, 8
cmp r8d, esi
jl 0x1405d7d24
jmp 0x1405d7d3e
mov dword [rcx + 0x14], r15d
movsxd r8, dword [rcx - 4]
add r8, rcx
movsxd rcx, dword [rbx + 0x2fe0]
mov rdx, qword [rbx + 0x2fe8]
add rcx, 4
add rdx, rcx
mov rcx, r11
cmp r8, rdx
cmovne rcx, r8
test rcx, rcx
jne 0x1405d7d11
cmp esi, r10d
jle 0x1405d7d8a
movsxd rdx, esi
lea r9, [0x1405d3304]
mov r8d, 8
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
xor r11d, r11d
test esi, esi
jle 0x1405d7dac
mov r14, rbp
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call fcn.1405d3268
lea r14, [r14 + 8]
sub rsi, 1
jne 0x1405d7d91
xor r11d, r11d
test r15d, r15d
jne 0x1405d7e1f
mov rcx, qword [rbx + 0x2f88]
test rcx, rcx
je 0x1405d7de7
and qword [rbx + 0x2f80], 0
mov rax, qword [0x1406e0940]
test rax, rax
je 0x1405d7dd7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r11d, r11d
mov qword [rbx + 0x2f88], r11
mov rcx, qword [rbx + 0x2f98]
test rcx, rcx
je 0x1405d7e32
and qword [rbx + 0x2f90], 0
mov rax, qword [0x1406e0940]
test rax, rax
je 0x1405d7e0d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r11d, r11d
mov qword [rbx + 0x2f98], r11
jmp 0x1405d7e32
cmp byte [rsp + 0x28], r11b
je 0x1405d7e32
bts dword [rdi + 8], 0xb
mov qword [rdi + 0x88], rdi
test rbp, rbp
je 0x1405d7e53
mov rax, qword [0x1406e0940]
test rax, rax
je 0x1405d7e49
dec dword [rax + 0x3b0]
mov rcx, rbp
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.140668060
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