Function at 0x140020d90
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movzx ebx, r9b
mov rdi, r8
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400211f8
movzx r8d, bl
mov rdx, rdi
mov rcx, rax
call fcn.1400206c0
test al, al
je 0x1400211f8
mov edx, VariantTimeToSystemTime
lea rcx, [rbp - 0x41]
call fcn.140024260
cmp qword [rax + 0x18], 0x10
jb 0x140020e10
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [rbp - 0x29]
cmp rcx, 0x10
jb 0x140020e76
inc rcx
mov rdx, qword [rbp - 0x41]
cmp rcx, 0x1000
jb 0x140020e6e
test dl, 0x1f
je 0x140020e41
call fcn.1400e463c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140020e50
call fcn.1400e463c
int3
sub rdx, rax
cmp rdx, 8
jae 0x140020e5f
call fcn.1400e463c
int3
cmp rdx, 0x27
jbe 0x140020e6b
call fcn.1400e463c
int3
mov rdx, rax
mov rcx, rdx
call fcn.14007b810
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
xor r13d, r13d
mov qword [rbp - 0x31], r13
mov byte [rbp - 0x41], r13b
test rbx, rbx
je 0x1400211f8
mov edx, VariantTimeToSystemTime
lea rcx, [rbp + 0xf]
call fcn.140024260
cmp qword [rax + 0x18], 0x10
jb 0x140020eaa
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rcx, [rbp + 0xf]
call fcn.140007010
test r12, r12
je 0x1400211f8
mov rbx, r13
mov edx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
lea rcx, [rbp - 0x19]
call fcn.140024260
mov rdi, rax
mov edx, VariantTimeToSystemTime
lea rcx, [rbp - 0x41]
call fcn.140024260
cmp qword [rdi + 0x18], 0x10
jb 0x140020ef7
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140020f01
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140020f22
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
cmovne rbx, rax
lea rcx, [rbp - 0x41]
call fcn.140007010
nop
lea rcx, [rbp - 0x19]
call fcn.140007010
test rbx, rbx
je 0x1400211f8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call rbx
mov r14, rax
test rax, rax
je 0x1400211f8
mov rdi, r13
mov edx, VarDecFromUI1
lea rcx, [rbp - 0x41]
call fcn.140024260
mov rbx, rax
mov edx, VariantTimeToSystemTime
lea rcx, [rbp - 0x19]
call fcn.140024260
cmp qword [rbx + 0x18], 0x10
jb 0x140020f91
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 0x10
jb 0x140020f9b
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140020fbc
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
cmovne rdi, rax
lea rcx, [rbp - 0x19]
call fcn.140007010
nop
lea rcx, [rbp - 0x41]
call fcn.140007010
test rdi, rdi
je 0x1400211f8
or r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rsi + r9*2], 0
jne 0x140020fe0
add r9, r9
mov qword [rsp + 0x20], r13
mov r8, rsi
mov rdx, r14
mov rcx, r15
call rdi
test eax, eax
je 0x1400211f8
mov qword [rbp - 0x49], r13
mov dword [rbp - 0x21], r13d
mov rbx, r13
mov edx, VarDecFromUI1
lea rcx, [rbp - 0x41]
call fcn.140024260
mov rdi, rax
mov edx, VarDecFromUI1
lea rcx, [rbp - 0x19]
call fcn.140024260
cmp qword [rdi + 0x18], 0x10
jb 0x14002103a
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140021044
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140021065
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
cmovne rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140007010
nop
lea rcx, [rbp - 0x41]
call fcn.140007010
test rbx, rbx
je 0x1400211fc
mov qword [rsp + 0x48], r13
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call rbx
cmp qword [rbp - 0x49], 0
jne 0x1400211fc
mov rdi, r13
mov edx, VarDecFromUI1
lea rcx, [rbp - 0x41]
call fcn.140024260
mov rbx, rax
mov edx, VarDecFromUI1
lea rcx, [rbp - 0x19]
call fcn.140024260
cmp qword [rbx + 0x18], 0x10
jb 0x1400210e7
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 0x10
jb 0x1400210f1
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140021112
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
cmovne rdi, rax
lea rcx, [rbp - 0x19]
call fcn.140007010
nop
lea rcx, [rbp - 0x41]
call fcn.140007010
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov r9, r15
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp - 0x49]
call rdi
cmp qword [rbp - 0x49], 0
jne 0x1400211fc
mov rbx, r13
mov edx, reloc.OLEAUT32.dll_VarDecFromUI1
lea rcx, [rbp - 0x41]
call fcn.140024260
mov rdi, rax
mov edx, VariantTimeToSystemTime
lea rcx, [rbp - 0x19]
call fcn.140024260
cmp qword [rdi + 0x18], 0x10
jb 0x140021190
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x14002119a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400211bb
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
cmovne rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140007010
nop
lea rcx, [rbp - 0x41]
call fcn.140007010
test rbx, rbx
je 0x1400211f8
lea rax, [rbp - 0x21]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
mov r9, r12
xor r8d, r8d
xor edx, edx
mov rcx, r15
call rbx
test rax, rax
jne 0x1400211fc
xor al, al
jmp 0x1400211fe
mov al, 1
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret