Function at 0x100a5be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101813ef
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
jne 0x100a5f5d
mov eax, dword [ebp + 8]
push 0x50
mov dword [ebx], eax
call fcn.1015144f
push 0x50
mov edi, eax
push 0
push edi
mov dword [ebp - 0x18], edi
call fcn.10152e30
add esp, 0x10
mov dword [edi + 4], 0
lea ecx, [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x4c], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x48], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x100a5caf
push eax
call esi
mov dword [edi + 0x24], 0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x100a5cd1
push eax
call esi
mov dword [edi + 0x28], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x100a5cf3
push eax
call esi
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x100a5d15
push eax
call esi
mov dword [edi + 0x2c], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x2c], eax
mov ecx, 0x18
mov eax, dword [ebp + 8]
mov dword [ebx + 0x28], edi
lea esi, [eax + eax*2]
mov eax, esi
mov dword [edi + 0x44], esi
mul ecx
mov ecx, 0xffffffff
mov dword [ebp - 0x1c], esi
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.101784f9
add esp, 4
mov dword [ebp - 0x18], eax
push 0x10022d90
push 0x100aaf80
mov dword [ebp - 4], 0
mov dword [eax], esi
add eax, 4
push esi
push 0x18
mov esi, eax
mov dword [ebp - 0x14], eax
push esi
call fcn.10178510
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x40], esi
test esi, esi
je 0x100a5f42
mov ecx, dword [edi + 0x44]
xor eax, eax
test ecx, ecx
jle 0x100a5da8
cmp dword [esi], 0
je 0x100a5f42
inc eax
add esi, 0x18
cmp eax, ecx
jl 0x100a5d97
push 0x25800
call fcn.101554b7
add esp, 4
mov dword [edi + 0x4c], eax
test eax, eax
je 0x100a5f42
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], 0
mov dword [eax + 8], ebx
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebx + 0x28]
push 0x100aafc0
push 0
push 0
call fcn.10161c9f
mov ecx, dword [ebx + 0x28]
add esp, 0x18
mov dword [ecx], eax
mov eax, dword [ebx + 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 4], eax
mov ecx, 0x78
mov edi, dword [ebx]
mov eax, edi
mul ecx
mov ecx, 0xffffffff
mov dword [ebp - 0x1c], edi
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.101784f9
add esp, 4
mov dword [ebp - 0x18], eax
push 0x100a5b90
push 0x100a5ad0
push edi
lea esi, [eax + 4]
mov dword [ebp - 4], 1
push 0x78
push esi
mov dword [eax], edi
call fcn.10178510
mov dword [ebp - 4], 0xffffffff
xor edi, edi
mov dword [ebx + 0x24], esi
cmp dword [ebx], edi
jle 0x100a5ef5
xor eax, eax
mov dword [ebp - 0x14], eax
nop dword [eax]
mov esi, dword [ebx + 0x24]
add esi, eax
mov eax, dword [ebp + 0xc]
push 0x38
push 0
push esi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ebx
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x60], eax
call fcn.10152e30
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov ecx, esi
call fcn.100f0cf0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push esi
push 0x100a65b0
push 0
push 0
call fcn.10161c9f
add esp, 0x30
mov dword [esi + 0x4c], eax
test eax, eax
je 0x100a5f06
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [esi + 0x70], eax
test edi, edi
jle 0x100a5ee3
push dword [ebp + 0x14]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x14]
inc edi
add eax, 0x78
mov dword [ebp - 0x14], eax
cmp edi, dword [ebx]
jl 0x100a5e60
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.100a6090
mov eax, 1
jmp 0x100a5f5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.100f1a20
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x100a5f29
push ecx
call fcn.100a5f90
mov dword [ebx + 0x28], 0
xor eax, eax
cmp edi, 8
jne 0x100a5f39
mov dword [ebx + 0x58], 0xa0000063
jmp 0x100a5f5f
mov dword [ebx + 0x58], 0xa0000075
jmp 0x100a5f5f
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x100a5f56
push ecx
call fcn.100a5f90
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x58], 0xa0000063
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0x10