Function at 0x1400109f0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140026620]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rcx + 0x58], r8
mov dword [rcx + 0xc], r9d
lea r14, [rcx + 0x10]
xor r12d, r12d
mov rbx, rcx
mov rbp, rdx
lea r9, [0x140014808]
lea r8d, [r12 + 1]
lea rcx, [0x140014798]
xor edx, edx
mov r15d, r12d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, rbx
mov edi, eax
test eax, eax
jns 0x140010a5a
call fcn.140010930
mov eax, edi
jmp 0x140010c9c
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x50], r13
call fcn.140010cc0
test eax, eax
js 0x140010a7c
mov r15d, 1
mov dword [rbx + 0x60], r15d
jmp 0x140010a80
mov dword [rbx + 0x60], r12d
or r13, 0xffffffffffffffff
mov rdi, r13
inc rdi
cmp byte [rdi + rbp], r12b
jne 0x140010a87
inc edi
mov eax, 2
movsxd rcx, edi
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140012cc4
mov r9d, r13d
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rsi
mov r9, qword [rcx]
call qword [r9 + 0x68]
mov r13, qword [rsp + 0x50]
mov edi, eax
test eax, eax
js 0x140010c1a
test r15d, r15d
jne 0x140010b6e
mov rcx, qword [r14]
lea r8, [rbx + 0x48]
lea rdx, [0x1400147d8]
mov rax, qword [rcx]
call qword [rax]
mov edi, eax
test eax, eax
js 0x140010c1a
mov rcx, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov rcx, qword [rbx + 0x48]
mov edx, 0x46000000
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbx + 0x48]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x128]
mov rcx, qword [rbx + 0x58]
lea rdx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rbx + 0x48]
mov eax, dword [rsp + 0x44]
mov r10, qword [rcx]
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
call qword [r10 + 0x138]
jmp 0x140010bbf
mov rcx, qword [rbx + 0x50]
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
test rcx, rcx
je 0x140010c7e
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x20], r12
call qword [rax + 0x18]
test eax, eax
js 0x140010c7e
cmp dword [rsp + 0x34], r12d
jne 0x140010bb7
cmp dword [rsp + 0x30], r12d
je 0x140010c7e
mov rcx, rbx
call fcn.140010df0
mov rcx, qword [r14]
lea r8, [rbx + 0x18]
lea rdx, [0x1400147b8]
mov rax, qword [rcx]
call qword [rax]
mov edi, eax
test eax, eax
js 0x140010c1a
mov rcx, qword [r14]
lea r8, [rbx + 0x20]
lea rdx, [0x1400147f8]
mov rax, qword [rcx]
call qword [rax]
mov edi, eax
test eax, eax
js 0x140010c1a
mov rcx, qword [r14]
lea r8, [rbx + 0x28]
lea rdx, [0x1400147c8]
mov rax, qword [rcx]
call qword [rax]
mov edi, eax
test eax, eax
js 0x140010c1a
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jns 0x140010c2f
mov rcx, rbx
call fcn.140010930
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, edi
jmp 0x140010c94
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [0x140010e90]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rbx + 8], 1
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140010c71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
jmp 0x140010c94
mov rcx, rbx
call fcn.140010930
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, 0x80004005
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140012ce0
add rsp, 0x58
pop r15
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret