Function at 0x10031e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], 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 [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10031ef7
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push section..data
push esi
lea ecx, [ebp - 0x10]
call fcn.10002330
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwin_thread.ipp
mov dword [ebp - 0x28], str.start_thread
mov dword [ebp - 0x24], 0x4c
mov dword [ebp - 0x20], 0x1a
test al, 1
je 0x10031ef1
cmp eax, 1
jne 0x10032024
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x10032024
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], eax
mov dword [ebx + 8], eax
cmp dword [ecx + 8], 0
jne 0x10031f69
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push section..data
push esi
lea ecx, [ebp - 0x10]
call fcn.10002330
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwin_thread.ipp
mov dword [ebp - 0x28], str.start_thread
mov dword [ebp - 0x24], 0x56
mov dword [ebp - 0x20], 0x1a
test al, 1
je 0x10031f69
cmp eax, 1
jne 0x10032036
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x10032036
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push 0x10035000
push dword [ebp - 0x1c]
push 0
call fcn.10044d1a
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ecx + 4], eax
test eax, eax
jne 0x10032001
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x1c], eax
call dword [edx]
test edi, edi
je 0x10031fb1
push edi
call esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x10031fbe
push eax
call esi
push section..data
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.10002330
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwin_thread.ipp
mov dword [ebp - 0x28], str.start_thread
mov dword [ebp - 0x24], 0x66
mov dword [ebp - 0x20], 0x1a
test al, 1
je 0x10032001
cmp eax, 1
jne 0x10032048
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x10032048
test edi, edi
je 0x10032011
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x2c]
push eax
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.10002b50
lea eax, [ebp - 0x2c]
push eax
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.10002b50
lea eax, [ebp - 0x2c]
push eax
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.10002b50
int3