Function at 0x140058250
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x230
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
lea r14, [0x140005b40]
mov qword [rsp + 0x48], r14
lea r15, [0x140005c00]
mov qword [rsp + 0x50], r15
lea r12, [0x140005b98]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x2b3
mov dword [rsp + 0x64], 4
mov dword [rsp + 0x68], 0xff
xor esi, esi
mov dword [rsp + 0xe8], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.140052e50
nop
mov dword [rsp + 0x260], esi
cmp qword [0x140154d68], rsi
jne 0x14006a84c
lea rdx, [0x1401544ec]
lea ecx, [rsi + 0x20]
call fcn.14005de74
test rax, rax
je 0x140058458
mov qword [rax + 8], rsi
lea rcx, fcn.140058d00
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov qword [0x140154d68], rax
test rax, rax
je 0x14006a860
lea rdx, [rax + 0x10]
call fcn.140058b90
mov ebx, eax
mov dword [rsp + 0x108], eax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x2c9
mov dword [rsp + 0x64], 4
mov dword [rsp + 0x68], 0xff
mov dword [rsp + 0xe8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x48]
mov qword [rsp + 0x268], rax
test ebx, ebx
js 0x14006a8c2
cmp byte [rsp + 0xeb], 0
je 0x1400583c6
lea rbx, [rsp + 0x70]
mov edi, 0xf
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14006a90c
add rbx, 8
dec rdi
jne 0x1400583b1
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14005c240]
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14006a91a
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [0x140154d70]
mov dword [rsp + 0x108], eax
cmp dword [rsp + 0x108], 0
jl 0x14006a98d
mov ebx, dword [rsp + 0x108]
lea rcx, [rsp + 0x100]
call fcn.140050f50
mov eax, ebx
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, rsi
jmp 0x140058324
lea rcx, [rsp + 0x100]
call fcn.140050f50
xor eax, eax
jmp 0x140058440
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x2c5
mov dword [rsp + 0x64], 4
mov dword [rsp + 0x68], 0xff
mov dword [rsp + 0xe8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea r9, [0x14003f7b0]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.140101d5c
nop
cmp ebx, 0x8000ffff
jne 0x14006a8df
mov dword [rsp + 0x40], ebx
lea rdx, [0x140153178]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x188]
call fcn.1400ff694
lea r9, [0x140005ca8]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140102640
nop
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbx], rsi
jmp 0x1400583bd
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x2cf
mov dword [rsp + 0x64], 4
mov dword [rsp + 0x68], 0xff
mov dword [rsp + 0xe8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [0x14003e7b0]
mov r8d, 0x8000ffff
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.140101d5c
nop
xor esi, esi
jmp 0x14005841c
mov rdi, qword [0x140154d68]
test rdi, rdi
je 0x14005842a
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.14005e6a0]
mov edx, 1
mov rcx, rdi
call rbx
mov qword [0x140154d68], rsi
jmp 0x14005842a