Function at 0x140012870
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140108b40]
cmp dword [rax + 0x12ca2f8], 1
je 0x140012d5b
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x11000d8
mov ebp, eax
call fcn.14001db8c
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x11000d8
mov rcx, rax
mov r14, rax
call fcn.14001f1b0
lea rax, vtable.CLocalSocket.0
xor edx, edx
lea rcx, [r14 + 0x14]
mov qword [r14], rax
mov r8d, 0x11000b8
call fcn.14001f1b0
xor eax, eax
lea r8, [0x140016ad0]
xor r15d, r15d
mov qword [r14 + 8], rax
mov qword [rsp + 0x28], r15
mov r9, r14
xor edx, edx
mov dword [r14 + 0x10], eax
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call fcn.140029074
mov r8, qword [0x140108b40]
lea rcx, [r14 + 0x900014]
mov qword [r14 + 0x11000d0], rax
lea rdx, [0x140046f88]
mov esi, dword [r8 + 0x41747d0]
lea rbx, [r8 + 0x41747ac]
mov edi, dword [r8 + 0x41747cc]
mov qword [r8 + 0x4174770], r14
add r8, 0x417478c
call fcn.140001190
lea rcx, [r14 + 0x900054]
mov r8, rbx
lea rdx, [0x140046f88]
call fcn.140001190
mov r11, qword [0x140108b40]
mov dword [r14 + 0x900098], esi
mov rsi, qword [rsp + 0xc0]
mov dword [r14 + 0x900094], edi
mov dword [r14 + 0x9000a0], 1
mov r14, qword [rsp + 0x98]
cmp dword [r11 + 0x41747d4], r15d
jne 0x140012a62
mov rdi, qword [r11 + 0x4174770]
mov ebx, r15d
mov dword [rdi + 0x9000ac], 1
cmp dword [rdi + 0x9000ac], 1
jne 0x1400129ed
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x1400129d2
mov r11, qword [0x140108b40]
mov rax, qword [r11 + 0x4174770]
cmp dword [rax + 8], 1
je 0x140012a84
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebp
cmp eax, 0x3e8
jg 0x140012a35
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x140108b40]
mov rax, qword [r11 + 0x4174770]
cmp dword [rax + 8], 1
jne 0x140012a05
jmp 0x140012a84
mov r11, qword [0x140108b40]
mov rcx, qword [r11 + 0x4174770]
test rcx, rcx
je 0x140012a59
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r11, qword [0x140108b40]
mov dword [r11 + 0x12ca2f8], r15d
jmp 0x140012a8f
mov rax, qword [r11 + 0x4174770]
mov dword [rax + 0x9000b4], 1
mov rax, qword [r11 + 0x4174770]
mov dword [rax + 0x9000bc], 1
mov dword [r11 + 0x12ca2f8], 1
cmp dword [r11 + 0x12ca2f8], 1
mov rbp, qword [rsp + 0xb8]
jne 0x140012c50
mov ebx, r15d
nop dword [rax + rax]
mov rax, qword [r11 + 0x4174770]
cmp dword [rax + 8], r15d
jne 0x140012ae1
cmp dword [rax + 0xc], r15d
jne 0x140012ae1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1f4
jge 0x140012ae1
mov r11, qword [0x140108b40]
jmp 0x140012ab0
mov r9d, 0xa
lea rdx, str.V_0_0_0_c_c
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 3]
call fcn.140001190
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140012b10
mov rdi, qword [0x140108b40]
cmp dword [rdi + 0x12ca2f8], 1
jne 0x140012b5d
mov rdi, qword [rdi + 0x4174770]
cmp dword [rdi + 8], r15d
jne 0x140012b3c
cmp dword [rdi + 0xc], r15d
je 0x140012b5d
movsxd r8, ebx
lea rcx, [rdi + 0x14]
lea rdx, [rsp + 0x40]
call fcn.1400212f0
mov dword [rdi + 0x90009c], ebx
mov dword [rdi + 0x9000a4], 1
mov r8d, 0x1f4
call fcn.140012780
mov ebx, eax
test eax, eax
jg 0x140012b81
mov r11, qword [0x140108b40]
mov dword [r11 + 0x12ca2f8], r15d
jmp 0x140012c08
mov r9, qword [0x140108b40]
mov edx, r15d
mov rcx, qword [r9 + 0x4174770]
mov r8d, dword [rcx + 0x11000c4]
nop dword [rax]
mov eax, dword [rcx + 0x11000c8]
cmp r8d, eax
je 0x140012bc7
inc eax
mov dword [rcx + 0x11000c8], eax
cmp eax, 0x800000
jb 0x140012bc1
mov dword [rcx + 0x11000c8], r15d
inc edx
cmp edx, ebx
jl 0x140012ba0
lea rcx, [r9 + 0xbb12e0]
mov r8d, 4
lea rdx, str.B290
call fcn.140029b90
mov rdx, qword [0x140108b40]
test eax, eax
je 0x140012bf2
mov dword [rdx + 0x12ca2f8], r15d
add rdx, 0xbb12e0
mov r8d, ebx
call fcn.140010170
mov r11, qword [0x140108b40]
cmp dword [r11 + 0x12ca2f8], r15d
jne 0x140012c50
mov rax, qword [r11 + 0x4174770]
mov dword [rax + 0x9000b0], 1
mov rax, qword [r11 + 0x4174770]
mov dword [rax + 0x9000b8], 1
mov rcx, qword [r11 + 0x4174770]
test rcx, rcx
je 0x140012c50
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r11, qword [0x140108b40]
cmp dword [r11 + 0x12ca2f8], 1
mov r15, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa0]
jne 0x140012d1d
cmp dword [r11 + 0x12ca36c], 1
jne 0x140012ccf
mov ebx, dword [r11 + 0x4174698]
call fcn.14000f430
call fcn.14000f630
call fcn.14000fc20
mov r11, qword [0x140108b40]
or dword [r11 + 0xbb0b44], 0x200
call fcn.140010220
cmp ebx, dword [r11 + 0x4174698]
je 0x140012ccf
movabs rax, 0x4053033333333333
mov dword [r11 + 0x14], 0x384
mov qword [r11 + 0x12ca330], rax
or dword [r11 + 0xbb0b44], 8
cmp dword [r11 + 0x4174698], 1
lea r8, [r11 + 0x417478c]
mov r9d, dword [r11 + 0x41747cc]
lea rdx, str._s__d_opened___.1lfGHz
mov eax, 0x12ad4
mov ecx, 0x13498
cmovne eax, ecx
lea rcx, [r11 + 0xbb0a44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140049258]
movsd qword [rsp + 0x20], xmm0
call fcn.140001190
jmp 0x140012d3e
mov r9d, dword [r11 + 0x41747cc]
lea r8, [r11 + 0x417478c]
lea rcx, [r11 + 0xbb0a44]
lea rdx, str.Can_not_open__s__d
call fcn.140001190
mov rcx, qword [0x140108b40]
mov rbx, qword [rsp + 0xb0]
or dword [rcx + 0xbb0b44], 0x10
or dword [rcx + 0xbb0b44], 0x20
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001d8e0
add rsp, 0xa8
ret