Function at 0x180002010
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov edi, r9d
cmp qword [0x180023cf0], rbp
movzx r12d, r8w
mov r13, rdx
mov dword [rsp + 0xa0], ebp
mov r14, rcx
mov esi, ebp
jne 0x18000208d
lea rcx, [0x18001e2d0]
call fcn.180006440
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180023cf0], rax
test rbx, rbx
je 0x18000208d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023cd0], rsi
jne 0x1800020dd
lea rcx, [0x18001e2f0]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023cd0], rax
test rbx, rbx
je 0x1800020dd
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023d00], rsi
jne 0x18000212d
lea rcx, [0x18001e310]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023d00], rax
test rbx, rbx
je 0x18000212d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023ce0], rsi
jne 0x18000217d
lea rcx, [0x18001e330]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023ce0], rax
test rbx, rbx
je 0x18000217d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023d10], rsi
jne 0x1800021cd
lea rcx, [0x18001e350]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023d10], rax
test rbx, rbx
je 0x1800021cd
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023cd8], rsi
jne 0x18000221d
lea rcx, [0x18001e370]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023cd8], rax
test rbx, rbx
je 0x18000221d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023cf8], rsi
jne 0x18000226d
lea rcx, [0x18001e390]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023cf8], rax
test rbx, rbx
je 0x18000226d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023d08], rsi
jne 0x1800022bd
lea rcx, [0x18001e3b0]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023d08], rax
test rbx, rbx
je 0x1800022bd
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023ce8], rsi
jne 0x18000230d
lea rcx, [0x18001e3d0]
call fcn.1800062d0
mov rcx, qword [0x180023cf0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023ce8], rax
test rbx, rbx
je 0x18000230d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [0x180023cd0]
mov r15, rax
test rax, rax
je 0x1800025c4
mov r9d, 4
mov dword [rsp + 0xc8], 0xea60
lea r8, [rsp + 0xc8]
mov rcx, rax
lea edx, [r9 - 2]
call qword [0x180023d00]
mov r9d, 4
lea r8, [rsp + 0xc8]
mov rcx, r15
lea edx, [r9 + 1]
call qword [0x180023d00]
mov r9d, 4
lea r8, [rsp + 0xc8]
mov rcx, r15
lea edx, [r9 + 2]
call qword [0x180023d00]
mov qword [rsp + 0x38], rbp
xor r9d, r9d
mov dword [rsp + 0x30], ebp
movzx r8d, r12w
mov dword [rsp + 0x28], 3
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbp
call qword [0x180023d10]
mov r12, rax
test rax, rax
je 0x1800025bb
cmp edi, 2
je 0x1800023d8
lea rcx, [0x18001e3f0]
call fcn.180006440
mov rbx, rax
mov r13, rbp
jmp 0x1800023fd
lea rcx, [0x18001e400]
call fcn.180006440
mov r13, qword [rsp + 0xb0]
mov rbx, rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0x38], rbp
lea r8, [0x18001e6d0]
mov dword [rsp + 0x30], 0x80480000
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [0x180023cd8]
mov r14, rax
test rbx, rbx
je 0x18000244e
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
test r14, r14
je 0x1800025b2
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x1800024fa
lea rcx, [0x18001e420]
call fcn.180006440
mov rdi, rax
or rax, 0xffffffffffffffff
mov rcx, rax
nop
inc rcx
cmp word [rdi + rcx*2], si
jne 0x180002480
nop dword [rax]
inc rax
cmp word [rbx + rax*2], si
jne 0x180002490
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.180005210
mov rsi, rax
test rax, rax
je 0x1800024f2
mov r8, rax
mov rdx, rdi
sub r8, rdi
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x1800024c0
lea rcx, [rax - 2]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1800024d5
xor edx, edx
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1800024e1
mov rcx, rdi
call fcn.1800065c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0xa0]
mov r9, r13
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rdx, rsi
mov rcx, r14
call qword [0x180023cf8]
mov ecx, 0x1000
call fcn.180005210
mov rbx, rax
test rax, rax
je 0x1800025a9
lea r9, [rsp + 0x40]
mov r8d, 0x1000
mov rdx, rax
mov rcx, r14
mov edi, ebp
mov esi, ebp
call qword [0x180023d08]
test eax, eax
je 0x1800025a1
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000258e
add edi, 0x1000
mov rcx, rbx
add esi, eax
lea edx, [rdi + 0x1000]
call fcn.180005240
mov edx, edi
lea r9, [rsp + 0x40]
add rdx, rax
mov r8d, 0x1000
mov rcx, r14
mov rbx, rax
call qword [0x180023d08]
test eax, eax
jne 0x180002550
test esi, esi
je 0x1800025a1
mov rax, qword [rsp + 0xc0]
mov rbp, rbx
mov dword [rax], esi
jmp 0x1800025a9
mov rcx, rbx
call fcn.180005280
mov rcx, r14
call qword [0x180023ce8]
mov rcx, r12
call qword [0x180023ce8]
mov rcx, r15
call qword [0x180023ce8]
lea r11, [rsp + 0x50]
mov rax, rbp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret