Function at 0x422890
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0
push 0
push 1
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [esp + 0x34]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], edi
test edi, edi
jne 0x42291c
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x4f7028
push esi
lea ecx, [esp + 0x1c]
call fcn.0040e4a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [esp + 0x24], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x28], 0x4c
mov dword [esp + 0x2c], 0x1a
test al, 1
je 0x422916
cmp eax, 1
jne 0x422a4a
cmp dword [esp + 0x14], 0
setne al
test al, al
jne 0x422a4a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 8], eax
mov dword [ebx + 8], eax
cmp dword [ebp + 8], 0
jne 0x422992
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x4f7028
push esi
lea ecx, [esp + 0x1c]
call fcn.0040e4a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [esp + 0x24], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x28], 0x56
mov dword [esp + 0x2c], 0x1a
test al, 1
je 0x422992
cmp eax, 1
jne 0x422a5e
cmp dword [esp + 0x14], 0
setne al
test al, al
jne 0x422a5e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
push 0x424c80
push dword [esp + 0x48]
push 0
call fcn.00496017
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x422a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x38], eax
call dword [edx]
test edi, edi
je 0x4229db
push edi
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x4229e5
push eax
call esi
push 0x4f7028
push dword [esp + 0x38]
lea ecx, [esp + 0x1c]
call fcn.0040e4a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], str.E:_repoyjscloudclinkClientOfCSP_agent_boost_1.85.0libs_asioinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [esp + 0x24], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x28], 0x66
mov dword [esp + 0x2c], 0x1a
test al, 1
je 0x422a30
cmp eax, 1
jne 0x422a72
cmp dword [esp + 0x14], 0
setne al
test al, al
jne 0x422a72
test edi, edi
je 0x422a40
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
lea eax, [esp + 0x20]
push eax
push str.thread.entry_event
lea eax, [esp + 0x1c]
push eax
call fcn.004191b0
lea eax, [esp + 0x20]
push eax
push str.thread.exit_event
lea eax, [esp + 0x1c]
push eax
call fcn.004191b0
lea eax, [esp + 0x20]
push eax
push str.thread
lea eax, [esp + 0x1c]
push eax
call fcn.004191b0
int3