Function at 0x140024990
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 [0x1401ec840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r11d, ecx
mov dword [rsp + 0x2c], ecx
mov rbp, qword [0x1402f58d0]
lea r14, [rbp + 0x5530]
xor r10d, r10d
test ecx, ecx
je 0x140024a19
mov edx, ecx
mov rcx, r14
call fcn.140004c30
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140024ddd
xor dl, dl
mov eax, dword [rax + 0xc4]
shl eax, 0x1d
sar eax, 0x1d
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0xc4]
shl eax, 0x1a
sar eax, 0x1d
mov dword [rsp + 0x24], eax
xor r10d, r10d
jmp 0x140024a2d
mov rbx, r10
mov qword [rsp + 0x30], rbx
xor dl, dl
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x24], r10d
mov dword [rsp + 0x20], edx
mov esi, r10d
mov dword [rsp + 0x3c], r10d
mov edi, r10d
mov dword [rsp + 0x38], edi
mov r13, r10
mov qword [rsp + 0x40], r10
mov r15d, r10d
cmp dword [r14], 0
jle 0x140024bd0
mov r12, r10
mov r8d, 1
nop
mov rax, qword [r14 + 8]
mov r14, qword [r12 + rax + 8]
test r14, r14
je 0x140024bb5
test r11d, r11d
je 0x140024aa5
cmp dword [r14], r11d
je 0x140024bb5
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x140024bb5
nop dword [rax]
lea rcx, [rax]
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140024a90
cmp dword [rcx], r11d
jne 0x140024bb5
mov eax, dword [r14 + 0x10]
shr eax, 0xb
test al, 1
movzx edx, dl
cmovne edx, r8d
mov dword [rsp + 0x20], edx
test r11d, r11d
je 0x140024af0
mov edx, r10d
cmp dword [rbp + 0x5540], 0
jle 0x140024af0
mov rcx, r10
nop dword [rax]
mov rax, qword [rbp + 0x5548]
cmp qword [rax + rcx + 0x10], r14
jne 0x140024ae2
mov dword [rax + rcx], r10d
inc edx
add rcx, 0x40
cmp edx, dword [rbp + 0x5540]
jl 0x140024ad0
test rbx, rbx
je 0x140024b0a
mov rdx, r14
mov rcx, rbx
call fcn.14001f610
mov edx, dword [rbx]
mov ecx, dword [r14]
call fcn.1400258f0
cmp edi, esi
jne 0x140024b99
lea ebx, [rdi + 1]
test esi, esi
je 0x140024b24
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x140024b29
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, esi
jle 0x140024b94
mov rax, qword [0x1402f58d0]
test rax, rax
je 0x140024b44
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
test r13, r13
je 0x140024b86
movsxd r8, edi
shl r8, 3
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x1402f58d0]
test rdx, rdx
je 0x140024b7d
dec dword [rdx + 0xf4]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, rsi
mov qword [rsp + 0x40], rsi
mov esi, ebx
mov dword [rsp + 0x3c], ebx
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
mov qword [r13 + rax*8], r14
inc edi
mov dword [rsp + 0x38], edi
mov r11d, dword [rsp + 0x2c]
xor r10d, r10d
mov r8d, 1
inc r15d
add r12, 0x10
lea r14, [rbp + 0x5530]
cmp r15d, dword [r14]
mov edx, dword [rsp + 0x20]
jl 0x140024a60
test rbx, rbx
je 0x140024c00
mov ecx, dword [rsp + 0x24]
lea ecx, [rcx*8]
mov edx, dword [rsp + 0x28]
xor edx, dword [rbx + 0xc4]
and edx, 0xffffffc0
mov eax, ecx
xor eax, dword [rsp + 0x28]
and eax, 0xffffffc7
xor edx, eax
xor edx, ecx
mov dword [rbx + 0xc4], edx
mov rcx, qword [rbp + 0x5598]
lea rax, [rcx + 4]
mov r9, r10
test rcx, rcx
cmovne r9, rax
test r9, r9
je 0x140024c76
nop word [rax + rax]
mov r8d, dword [r9 + 0x14]
test r8d, r8d
je 0x140024c4b
mov edx, r10d
test edi, edi
jle 0x140024c4b
mov rcx, r13
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x140024c47
inc edx
add rcx, 8
cmp edx, edi
jl 0x140024c33
jmp 0x140024c4b
mov dword [r9 + 0x14], r11d
movsxd r8, dword [r9 - 4]
add r8, r9
movsxd rcx, dword [rbp + 0x5590]
mov rdx, qword [rbp + 0x5598]
add rdx, 4
add rdx, rcx
mov r9, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x140024c20
cmp edi, 1
jle 0x140024c9d
movsxd rdx, edi
cmp rdx, 1
jbe 0x140024c9d
lea r9, [0x14001de80]
mov r8d, 8
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
xor r10d, r10d
test edi, edi
jle 0x140024d3b
mov rsi, r13
nop dword [rax + rax]
mov rbx, qword [rsi]
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140024cc6
mov qword [rax + 0x428], r10
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140024cee
mov eax, reloc.WLDAP32.dll_Ordinal_32
cmp rax, 0x30
jge 0x140024cee
cmp qword [rdx + rax], rbx
jne 0x140024ce8
mov rcx, qword [rbx + 0x18]
mov qword [rax + rcx], r10
add rax, 8
jmp 0x140024cd4
xor r8d, r8d
mov edx, dword [rbx]
lea rcx, [rbp + 0x5530]
call fcn.140004d30
mov rcx, rbx
call fcn.14001efe0
mov rax, qword [0x1402f58d0]
test rax, rax
je 0x140024d19
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
mov r10d, 0
jne 0x140024cb0
mov rbx, qword [rsp + 0x30]
cmp dword [rsp + 0x2c], 0
jne 0x140024d9b
mov rcx, qword [r14 + 8]
xor ebx, ebx
test rcx, rcx
je 0x140024d6c
mov qword [r14], rbx
mov rax, qword [0x1402f58d0]
test rax, rax
je 0x140024d62
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 + 8], rbx
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140024dbc
mov qword [r14 + 0x10], 0
mov rax, qword [0x1402f58d0]
test rax, rax
je 0x140024d8f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 + 0x18], rbx
jmp 0x140024dbc
cmp byte [rsp + 0x20], 0
je 0x140024dbc
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 r13, r13
je 0x140024ddd
mov rax, qword [0x1402f58d0]
test rax, rax
je 0x140024dd3
dec dword [rax + 0xf4]
mov rcx, r13
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.1401a2f30
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