Function at 0x4071a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x43f00c]
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 0x407288
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x43f078]
mov eax, dword [0x43f07c]
cmp ecx, 0x257edfd1
jne 0x40720c
cmp eax, 0xb2ab117a
je 0x40721b
cmp ecx, 0x257edfd0
jne 0x407222
cmp eax, 0xb2ab117a
jne 0x407222
test edi, edi
setne al
jmp 0x407232
mov eax, dword [0x43f070]
mov ecx, 0x43f070
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], 0x43f070
mov dword [esp + 0x10], str.D:_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.start_thread
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x407282
cmp eax, 1
jne 0x407454
test edi, edi
setne al
test al, al
jne 0x407454
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 0x407346
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x43f078]
mov eax, dword [0x43f07c]
cmp ecx, 0x257edfd1
jne 0x4072d0
cmp eax, 0xb2ab117a
je 0x4072df
cmp ecx, 0x257edfd0
jne 0x4072e6
cmp eax, 0xb2ab117a
jne 0x4072e6
test edi, edi
setne al
jmp 0x4072f6
mov eax, dword [0x43f070]
mov ecx, 0x43f070
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], 0x43f070
mov dword [esp + 0x10], str.D:_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.start_thread
mov dword [esp + 0x18], 0x56
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x407346
cmp eax, 1
jne 0x407467
test edi, edi
setne al
test al, al
jne 0x407467
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0
push ebx
push 0x407490
push dword [esp + 0x30]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [ecx + 4], eax
test eax, eax
jne 0x40742c
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 0x407396
push esi
call ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x4073a4
push eax
call ebx
mov ecx, dword [0x43f078]
mov eax, dword [0x43f07c]
cmp ecx, 0x257edfd1
jne 0x4073be
cmp eax, 0xb2ab117a
je 0x4073cd
cmp ecx, 0x257edfd0
jne 0x4073d4
cmp eax, 0xb2ab117a
jne 0x4073d4
test edi, edi
setne al
jmp 0x4073e4
mov eax, dword [0x43f070]
mov ecx, 0x43f070
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], 0x43f070
mov dword [esp + 0x10], str.D:_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x14], str.start_thread
mov dword [esp + 0x18], 0x66
mov dword [esp + 0x1c], 0x1a
test al, 1
je 0x40742c
cmp eax, 1
jne 0x40747a
test edi, edi
setne al
test al, al
jne 0x40747a
test esi, esi
je 0x407440
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.0042c87e
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.00406af0
lea eax, [esp + 0x10]
mov edx, str.thread.exit_event
push eax
lea ecx, [esp + 0x28]
call fcn.00406af0
lea eax, [esp + 0x10]
mov edx, str.thread
push eax
lea ecx, [esp + 0x28]
call fcn.00406af0
int3