Function at 0x140023e60
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x1402cf868]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1402e7570], eax
jle 0x140023ee2
lea rcx, [0x1402e7570]
call fcn.1401c9670
cmp dword [0x1402e7570], 0xffffffff
jne 0x140023ee2
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1402d6498], rax
lea rcx, [0x1402e7570]
call fcn.1401c9610
mov eax, dword [rbx]
cmp dword [0x1402d6028], eax
jle 0x140023f28
lea rcx, [0x1402d6028]
call fcn.1401c9670
cmp dword [0x1402d6028], 0xffffffff
jne 0x140023f28
lea rdx, str.OpenProcess
mov rcx, qword [0x1402d6498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402f7a58], rax
lea rcx, [0x1402d6028]
call fcn.1401c9610
mov eax, dword [rbx]
cmp dword [0x1402e7360], eax
jle 0x140023f6e
lea rcx, [0x1402e7360]
call fcn.1401c9670
cmp dword [0x1402e7360], 0xffffffff
jne 0x140023f6e
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, qword [0x1402d6498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402e79c0], rax
lea rcx, [0x1402e7360]
call fcn.1401c9610
mov eax, dword [rbx]
cmp dword [0x1402e74a0], eax
jle 0x140023fb4
lea rcx, [0x1402e74a0]
call fcn.1401c9670
cmp dword [0x1402e74a0], 0xffffffff
jne 0x140023fb4
lea rdx, str.Process32FirstW
mov rcx, qword [0x1402d6498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402e70b0], rax
lea rcx, [0x1402e74a0]
call fcn.1401c9610
mov eax, dword [rbx]
cmp dword [0x1402eb9d0], eax
jle 0x140023ffa
lea rcx, [0x1402eb9d0]
call fcn.1401c9670
cmp dword [0x1402eb9d0], 0xffffffff
jne 0x140023ffa
lea rdx, str.Process32NextW
mov rcx, qword [0x1402d6498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402d6538], rax
lea rcx, [0x1402eb9d0]
call fcn.1401c9610
mov eax, dword [rbx]
cmp dword [0x1402e7560], eax
jle 0x140024040
lea rcx, [0x1402e7560]
call fcn.1401c9670
cmp dword [0x1402e7560], 0xffffffff
jne 0x140024040
lea rdx, [0x140297588]
mov rcx, qword [0x1402d6498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402d6a50], rax
lea rcx, [0x1402e7560]
call fcn.1401c9610
mov rax, qword [0x1402e79c0]
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rsi, rax
xor bpl, bpl
cmp rax, 0xffffffffffffffff
je 0x140024145
mov dword [rsp + 0x40], 0x238
mov r8, qword [0x1402e70b0]
lea rdx, [rsp + 0x40]
mov rcx, rax
call r8
test eax, eax
je 0x140024145
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400240a2
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140008810
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400240c9
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rdi + 0x10]
jne 0x140024121
test rcx, rcx
je 0x140024180
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x140024121
sub r9, rax
cmp dx, r8w
ja 0x140024121
cmp rcx, 1
je 0x140024180
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140024103
lea rcx, [rsp + 0x20]
call fcn.140008780
mov r8, qword [0x1402d6538]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call r8
test eax, eax
jne 0x140024083
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401c94c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [rsp + 0x20]
call fcn.140008780
mov rax, qword [0x1402f7a58]
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 1]
call rax
mov rbx, rax
mov r8, qword [0x1402d6a50]
xor edx, edx
mov rcx, rax
call r8
test eax, eax
setne bpl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002412b