Function at 0x100403d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [esi + 4], ebx
test ebx, ebx
jne 0x1004045c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x101653ec]
mov ecx, dword [ebp + 8]
call esi
push 0x101ad288
push edi
lea ecx, [ebp - 0x14]
call fcn.1001be50
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [ebp - 0x20], str.start_thread
mov dword [ebp - 0x1c], 0x4c
mov dword [ebp - 0x18], 0x1d
test al, 1
je 0x10040459
cmp eax, 1
jne 0x1004059f
cmp dword [ebp - 0x14], ebx
setne al
test al, al
jne 0x1004059f
mov esi, dword [ebp + 8]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov dword [esi + 8], eax
cmp dword [ecx + 8], 0
jne 0x100404e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x101653ec]
mov ecx, dword [ebp + 8]
call esi
push 0x101ad288
push edi
lea ecx, [ebp - 0x14]
call fcn.1001be50
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [ebp - 0x20], str.start_thread
mov dword [ebp - 0x1c], 0x56
mov dword [ebp - 0x18], 0x1d
test al, 1
je 0x100404dd
cmp eax, 1
jne 0x100405b1
cmp dword [ebp - 0x14], 0
setne al
test al, al
jne 0x100405b1
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push esi
push 0x10044a50
push dword [ebp + 0xc]
push 0
call fcn.1013ac5c
mov edi, dword [ebp - 4]
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
jne 0x10040582
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push 1
mov dword [ebp - 4], eax
mov esi, dword [edx]
mov ecx, esi
call dword [0x101653ec]
mov ecx, dword [ebp + 8]
call esi
test ebx, ebx
je 0x10040531
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x1004053f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x101ad288
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.1001be50
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_detail_impl_win_thread.ipp
mov dword [ebp - 0x20], str.start_thread
mov dword [ebp - 0x1c], 0x66
mov dword [ebp - 0x18], 0x1d
test al, 1
je 0x10040582
cmp eax, 1
jne 0x100405c3
cmp dword [ebp - 0x14], 0
setne al
test al, al
jne 0x100405c3
test ebx, ebx
je 0x10040596
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x24]
push eax
push str.thread.entry_event
lea eax, [ebp - 0x14]
push eax
call fcn.1002ce50
lea eax, [ebp - 0x24]
push eax
push str.thread.exit_event
lea eax, [ebp - 0x14]
push eax
call fcn.1002ce50
lea eax, [ebp - 0x24]
push eax
push str.thread
lea eax, [ebp - 0x14]
push eax
call fcn.1002ce50
int3