Function at 0x4088e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x4ad100]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x4089c3
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x40894c
cmp eax, 0xb2ab117a
je 0x40895b
cmp ecx, 0x257edfd0
jne 0x408962
cmp eax, 0xb2ab117a
jne 0x408962
test edi, edi
setne al
jmp 0x408972
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x4adc08
mov dword [esp + 0x10], str.C:_vcpkginstalledx86_windowsinclude_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x4089bd
cmp eax, 1
jne 0x408b84
test edi, edi
jne 0x408b84
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], eax
mov dword [ebx + 8], eax
cmp dword [ecx + 8], 0
jne 0x408a7c
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x408a0b
cmp eax, 0xb2ab117a
je 0x408a1a
cmp ecx, 0x257edfd0
jne 0x408a21
cmp eax, 0xb2ab117a
jne 0x408a21
test edi, edi
setne al
jmp 0x408a31
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x4adc08
mov dword [esp + 0x10], str.C:_vcpkginstalledx86_windowsinclude_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x18], 0x56
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x408a7c
cmp eax, 1
jne 0x408b97
test edi, edi
jne 0x408b97
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0
push ebx
push 0x408bc0
push dword [esp + 0x30]
push 0
call fcn.0046b556
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [ecx + 4], eax
test eax, eax
jne 0x408b5c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x408acb
push esi
call ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x408ad9
push eax
call ebx
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x408af3
cmp eax, 0xb2ab117a
je 0x408b02
cmp ecx, 0x257edfd0
jne 0x408b09
cmp eax, 0xb2ab117a
jne 0x408b09
test edi, edi
setne al
jmp 0x408b19
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x4adc08
mov dword [esp + 0x10], str.C:_vcpkginstalledx86_windowsinclude_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.void___thiscall_boost::asio::detail::win_thread::start_thread_class_boost::asio::detail::win_thread::func_base__unsigned_int_
mov dword [esp + 0x18], 0x66
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x408b5c
cmp eax, 1
jne 0x408baa
test edi, edi
jne 0x408baa
test esi, esi
je 0x408b70
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466048
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x10]
mov edx, str.thread.entry_event
push eax
lea ecx, [esp + 0x28]
call fcn.00408310
lea eax, [esp + 0x10]
mov edx, str.thread.exit_event
push eax
lea ecx, [esp + 0x28]
call fcn.00408310
lea eax, [esp + 0x10]
mov edx, str.thread
push eax
lea ecx, [esp + 0x28]
call fcn.00408310
int3