Function at 0x1000a210
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100ae1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100b25a8
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b2528], 0
jne 0x1000a25e
push 0
push 0x100be670
call fcn.10006350
push 0
push 0x100b2508
call fcn.10006350
mov dword [0x100b2528], 1
push 0x100b25a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
cmovs edi, eax
push edi
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x408], eax
test eax, eax
jne 0x1000a2cc
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.1005ea40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._debug__HPR_AsyncIO_CreateQueueEx_New_CreateIoCompletionPort_error__d_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.1005fd10
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000a664
push 0x100b1390
push 0x10
call fcn.1005fe58
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000a328
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.1005ea40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._debug__HPR_AsyncIO_CreateQueueEx_New_new__::std::nothrow__SHPR_IOCPINFO_error__d_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.1005fd10
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000a664
mov ecx, dword [ebp - 0x408]
mov eax, edi
mov dword [esi], ecx
mov edx, 4
xor ecx, ecx
mov dword [esi + 4], edi
mul edx
push 0x100b1390
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10060134
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1000a3a1
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.1005ea40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._debug__HPR_AsyncIO_CreateQueueEx_New_new__::std::nothrow__HPR_SEM_T_error__d_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.1005fd10
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000a537
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1000a3d3
jmp 0x1000a3b0
mov eax, dword [esi + 0xc]
push 0
push 0xffff
push 1
push 0
lea ebx, [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test eax, eax
je 0x1000a3cd
mov dword [ebx], eax
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a3b0
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, 4
mul edx
push 0x100b1390
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10060134
mov ecx, eax
add esp, 8
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x1000a444
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.1005ea40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._debug__HPR_AsyncIO_CreateQueueEx_New_new__::std::nothrow__HPR_HANDLE_error__d_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.1005fd10
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000a537
mov eax, dword [esi + 4]
shl eax, 2
push eax
push 0
push ecx
call fcn.1005ea40
xor edi, edi
add esp, 0xc
cmp dword [esi + 4], edi
jle 0x1000a4a3
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
lea ebx, [edi*4]
add eax, ebx
je 0x1000a478
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push esi
push 0x10009eb0
push 0
push 0
call fcn.100621c5
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ebx + ecx], eax
mov eax, dword [esi + 8]
cmp dword [ebx + eax], 0
je 0x1000a4de
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a460
push 0x100be670
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x408]
push eax
call fcn.1000b680
push 0x100be670
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d9b3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.1005ea40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._debug__HPR_AsyncIO_CreateQueueEx_New_HPR_Thread_Create_error__d_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.1005fd10
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
lea eax, [eax + edi*4]
test eax, eax
je 0x1000a537
push 0
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [esi + 8], 0
je 0x1000a624
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1000a58f
mov ebx, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov edi, edi
cmp dword [0x100b2530], 0
je 0x1000a560
call fcn.10009bc0
jmp 0x1000a56f
push 0x100b1390
push 0x38
call fcn.1005fe58
add esp, 8
test eax, eax
je 0x1000a589
push eax
push 0
push 1
mov dword [eax + 0x14], 9
mov dword [eax + 0x2c], esi
mov dword [eax + 0x34], edi
push dword [esi]
call ebx
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a550
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1000a5e4
jmp 0x1000a5a0
mov eax, dword [esi + 8]
lea ebx, [edi*4]
cmp dword [ebx + eax], 0
je 0x1000a5de
mov eax, dword [esi + 0xc]
add eax, ebx
je 0x1000a5e4
push 0xbb8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000a5e4
mov eax, dword [esi + 8]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [ebx + eax], 0
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a5a0
mov eax, dword [esi + 4]
cmp edi, eax
jge 0x1000a612
xor edi, edi
test eax, eax
jle 0x1000a612
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x1000a60c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a5f1
push dword [esi + 8]
call fcn.1005d9ae
add esp, 4
mov dword [esi + 8], 0
cmp dword [esi + 0xc], 0
je 0x1000a65b
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1000a649
mov eax, dword [esi + 0xc]
lea eax, [eax + edi*4]
test eax, eax
je 0x1000a643
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 4]
jl 0x1000a631
push dword [esi + 0xc]
call fcn.1005d9ae
add esp, 4
mov dword [esi + 0xc], 0
push esi
call fcn.1005ce6b
add esp, 4
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x1000a675
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d9b3
mov esp, ebp
pop ebp
ret