Function at 0x10010430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], esi
test esi, esi
jne 0x10010501
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x101ace90]
mov eax, dword [0x101ace94]
cmp ecx, 0x257edfd1
jne 0x1001048a
cmp eax, 0xb2ab117a
je 0x10010499
cmp ecx, 0x257edfd0
jne 0x100104a0
cmp eax, 0xb2ab117a
jne 0x100104a0
test edi, edi
setne al
jmp 0x100104b0
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x101ace88
mov dword [esp + 0x20], str.C:ProjectTrading_boost_1_81_0_boost_asiodetail_throw_error.hpp
mov dword [esp + 0x24], str.start_thread
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 5
test al, 1
je 0x100104fb
cmp eax, 1
jne 0x100106b5
test edi, edi
jne 0x100106b5
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 0x100105ba
call edi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x101ace90]
mov eax, dword [0x101ace94]
cmp ecx, 0x257edfd1
jne 0x10010549
cmp eax, 0xb2ab117a
je 0x10010558
cmp ecx, 0x257edfd0
jne 0x1001055f
cmp eax, 0xb2ab117a
jne 0x1001055f
test edi, edi
setne al
jmp 0x1001056f
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x101ace88
mov dword [esp + 0x20], str.C:ProjectTrading_boost_1_81_0_boost_asiodetail_throw_error.hpp
mov dword [esp + 0x24], str.start_thread
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 5
test al, 1
je 0x100105ba
cmp eax, 1
jne 0x100106c8
test edi, edi
jne 0x100106c8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
push 0x100106f0
push 0
push 0
call fcn.1005284f
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [ecx + 4], eax
test eax, eax
jne 0x10010698
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 0x10010607
push esi
call ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x10010615
push eax
call ebx
mov ecx, dword [0x101ace90]
mov eax, dword [0x101ace94]
cmp ecx, 0x257edfd1
jne 0x1001062f
cmp eax, 0xb2ab117a
je 0x1001063e
cmp ecx, 0x257edfd0
jne 0x10010645
cmp eax, 0xb2ab117a
jne 0x10010645
test edi, edi
setne al
jmp 0x10010655
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x101ace88
mov dword [esp + 0x20], str.C:ProjectTrading_boost_1_81_0_boost_asiodetail_throw_error.hpp
mov dword [esp + 0x24], str.start_thread
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 5
test al, 1
je 0x10010698
cmp eax, 1
jne 0x100106db
test edi, edi
jne 0x100106db
test esi, esi
je 0x100106ac
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x20]
mov edx, str.thread.entry_event
push eax
lea ecx, [esp + 0x18]
call fcn.1000f990
lea eax, [esp + 0x20]
mov edx, str.thread.exit_event
push eax
lea ecx, [esp + 0x18]
call fcn.1000f990
lea eax, [esp + 0x20]
mov edx, str.thread
push eax
lea ecx, [esp + 0x18]
call fcn.1000f990
int3