Function at 0x6a94c51a
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
cmp dword [ebp + 8], 0
jne 0x6a94c5ab
mov dword [esp], str.SCHRO_THREADS
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6a94c575
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x6a94c575
mov dword [esp + 8], 0
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
test al, al
jne 0x6a94c575
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x6a94c59e
mov dword [esp], str.NUMBER_OF_PROCESSORS
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6a94c59e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x6a94c5ab
mov dword [ebp + 8], 1
mov dword [esp], 0x48
call fcn.6a94d1d7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x6adf685b
mov dword [esp + 0xc], 0x67
mov dword [esp + 8], str.schro_async_new
mov dword [esp + 4], str.schroasync_win32.c
mov dword [esp], 4
call fcn.6a91e42c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov eax, edx
shl eax, 1
add eax, edx
shl eax, 3
mov dword [esp], eax
call fcn.6a94d1d7
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [esp], eax
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
mov dword [ebp - 0xc], 0
jmp 0x6a94c761
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 1
add eax, edx
shl eax, 3
add eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 1
add eax, edx
shl eax, 3
lea ebx, [ecx + eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 1
add eax, edx
shl eax, 3
lea edx, [ecx + eax]
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x6a94cbf8
mov dword [esp + 4], 0x10000
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [esp], eax
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x6a94c692
mov eax, dword [ebp - 0x18]
add eax, 0x14
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 4]
leave
ret