Function at 0x100058758
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x128
mov rax, qword [0x10007f110]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x198]
mov r13, qword [rsp + 0x1c8]
mov qword [r11 - 0xd8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xb8], rax
xor eax, eax
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0xb0], rcx
lea r8, [0x10001ad88]
lea edx, [rax + 0x5e]
lea rcx, [r11 - 0x98]
mov r12, r9
mov qword [rsp + 0xa8], r9
mov dword [rsp + 0x98], eax
mov rbp, rax
mov byte [rsp + 0x81], al
mov r14b, al
mov qword [r11 - 0xc8], rax
mov qword [r11 - 0xe0], rax
mov rbx, rax
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0xe0]
xor edx, edx
call sub.msvcrt.dll_memset
xor eax, eax
cmp r12, rax
je 0x100058cdf
cmp rsi, rax
je 0x100058cdf
cmp r13, rax
je 0x100058cdf
xor r12d, r12d
mov qword [r13], r12
cmp rdi, r12
je 0x10005889a
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0xe0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, r12d
mov edi, eax
jge 0x10005887e
mov r9d, eax
lea r8, [0x10001adf8]
xor edx, edx
lea ecx, [rdx + 0x5e]
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
jmp 0x100058b47
bt dword [rsp + 0x108], 0xd
jae 0x10005889a
mov edi, 0x80042917
lea r8, [0x10001ae20]
mov r9d, edi
jmp 0x10005886f
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10005894b
lea rdx, [0x10000b318]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r12d
jne 0x1000588d9
bt dword [rsp + 0x108], 0xe
jae 0x1000588d9
mov edi, 0x80042914
lea r8, [0x10001ae48]
mov r9d, edi
jmp 0x10005886f
mov rcx, qword [rsp + 0x90]
lea rdx, [0x10000b308]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r12d
jne 0x100058912
bt dword [rsp + 0x108], 0xf
jae 0x100058912
mov edi, 0x80042915
lea r8, [0x10001ae70]
mov r9d, edi
jmp 0x10005886f
mov rcx, qword [rsp + 0x90]
lea rdx, [0x10000b2d8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r12d
jne 0x10005898f
bt dword [rsp + 0x108], 0x10
jae 0x10005898f
mov edi, 0x80042916
lea r8, [0x10001ae98]
mov r9d, edi
jmp 0x10005886f
lea r9, [rsp + 0x81]
lea r8, [rsp + 0x1b0]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.100059188
cmp eax, r12d
mov edi, eax
jge 0x10005898f
xor edx, edx
lea r8, [0x10001aec0]
mov r9, rsi
lea ecx, [rdx + 0x5e]
mov dword [rsp + 0x20], eax
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
jmp 0x100058b47
mov r14d, dword [rsp + 0x1c0]
mov r12d, r14d
and r12d, 4
je 0x1000589dd
mov rcx, qword [rsp + 0x90]
lea rdx, [0x10000b318]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1000589dd
mov edi, 0x80042918
lea rdx, [0x10001af00]
mov r8, rsi
mov r9d, edi
xor ecx, ecx
call sub.vdsutil.dll_void___cdecl_VdsTraceW_unsigned_long_int__unsigned_short_int____ptr64_
mov r14b, bl
xor r12d, r12d
jmp 0x100058b47
test r15, r15
je 0x100058a27
lea rcx, [0x10007ff18]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
xor eax, eax
lea rcx, [0x10007ff18]
cmp word [r15 + 2], ax
je 0x100058a13
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov edi, 0x80042404
lea rdx, [0x10001af60]
jmp 0x1000589c5
mov eax, 0x8000
lea rbx, [r15 + 2]
mov word [r15 + 2], ax
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov r8b, 1
lea r9, [rsp + 0x88]
mov ecx, 0x65
mov dl, r8b
call fcn.10005940c
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100058a63
lea rdx, [0x10001afc0]
mov r9d, edi
mov r8, rsi
xor ecx, ecx
call sub.vdsutil.dll_void___cdecl_VdsTraceW_unsigned_long_int__unsigned_short_int____ptr64_
mov r14b, bpl
jmp 0x1000589d5
mov rax, qword [rsp + 0xc0]
mov r9d, dword [rsp + 0x190]
mov r8, qword [rsp + 0xa8]
movdqu xmm0, xmmword [rax]
mov eax, r14d
mov edx, r14d
and eax, 8
and edx, 2
lea rcx, [rsp + 0xa0]
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x88]
and r14d, 1
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x1b0]
lea rdx, [rsp + 0xc0]
mov byte [rsp + 0x80], 1
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x1a8]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.100058d14
xor r12d, r12d
mov edi, eax
cmp eax, r12d
jge 0x100058c14
lea rdx, [0x10001b020]
mov r9d, eax
mov r8, rsi
xor ecx, ecx
call sub.vdsutil.dll_void___cdecl_VdsTraceW_unsigned_long_int__unsigned_short_int____ptr64_
mov r14b, byte [rsp + 0x80]
mov rcx, qword [rsp + 0x110]
cmp rcx, r12
je 0x100058b62
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x110], r12
cmp byte [rsp + 0x81], r12b
je 0x100058b8c
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
mov qword [rsp + 0x90], r12
cmp edi, r12d
jge 0x100058bb8
cmp rbp, r12
je 0x100058ba5
cmp rbp, 0xffffffffffffffff
je 0x100058ba5
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp r14b, r12b
je 0x100058bb8
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rsp + 0xd0]
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64
cmp rbx, r12
je 0x100058bee
lea rcx, [0x10007ff18]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
mov r11d, 0x7fff
lea rcx, [0x10007ff18]
and word [rbx], r11w
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.100075490
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 8]
mov r9, qword [rsp + 0xa0]
lea r11, [rsp + 0x98]
mov qword [rsp + 0x28], r11
lea r8, [0x100050998]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov rbp, rax
cmp rax, r12
je 0x100058cad
cmp rax, 0xffffffffffffffff
je 0x100058cad
mov rcx, qword [rsp + 0x88]
lea rdx, [0x100003960]
mov r8, r13
mov r9, qword [rcx]
mov rbx, r12
call qword [r9]
cmp eax, r12d
mov edi, eax
jge 0x100058c89
lea rdx, [0x10001b0e0]
jmp 0x100058b32
mov rcx, qword [rsp + 0x88]
cmp rcx, r12
je 0x100058b3f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x88], r12
jmp 0x100058b3f
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea rdx, [0x10001b080]
movzx edi, ax
or edi, 0x80070000
cmp eax, r12d
cmovle edi, eax
mov r9d, edi
jmp 0x100058b35
xor edx, edx
mov qword [rsp + 0x30], r13
mov edi, 0x80070057
lea r8, [0x10001adb0]
lea ecx, [rdx + 0x5e]
mov r9d, edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
call sub.vdsutil.dll_void___cdecl_VdsTraceEx_unsigned_long_int__unsigned_long_int__char____ptr64_
jmp 0x1000589d5