Function at 0x1003ee78
Capabilities:
Create thread
Get memory capacity
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x94], eax
push 8
xor eax, eax
mov dword [ebp - 0x84], edx
and dword [ebp - 0x74], eax
lea edi, [ebp - 0x28]
pop ecx
rep stosd dword es:[edi], eax
mov edx, 0x80000
mov dword [ebp - 0x70], ebx
mov ecx, ebx
xor esi, esi
call fcn.1001a46f
test eax, eax
jne 0x1003f267
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0x10007c7c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1003f24a
cmp eax, 0x10
ja 0x1003f24a
push 0xffffffffffffffff
push 0x10007cb4
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
jne 0x1003f24a
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1003f24a
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
shrd edx, eax, 0xa
shrd edi, ecx, 0xa
shr eax, 0xa
shr ecx, 0xa
test eax, eax
jne 0x1003ef53
cmp edx, 0x1f4000
jb 0x1003f24a
test ecx, ecx
jne 0x1003ef63
cmp edi, 0x100000
jbe 0x1003f24a
push 0xe38
push 0x10007cbc
push 0
push 0x10007cf0
push 0
push 3
mov edx, ebx
pop ecx
call fcn.1002fae3
push 2
pop esi
push 0x10
pop edi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x80], esi
push eax
push 0x10007db8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1003efc4
cmp eax, edi
ja 0x1003efc4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
push 0x10004540
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x1003efc4
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x80], esi
push 2
pop eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
push edi
push eax
push 0x10007de4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1003f005
cmp eax, edi
ja 0x1003f005
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
push 0x10004540
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x1003f005
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1003f026
mov esi, 0x8007000e
jmp 0x1003f267
mov eax, dword [ebp - 0x7c]
mov dword [edi], ebx
cmp eax, 8
ja 0x1003f035
cmp eax, 1
jae 0x1003f03c
mov dword [ebp - 0x7c], 2
cmp esi, 4
ja 0x1003f046
cmp esi, 1
jae 0x1003f04d
mov dword [ebp - 0x80], 2
and dword [ebp - 0x78], 0
mov ecx, ebx
call fcn.10030a0e
lea edx, [ebp - 0x78]
mov ecx, eax
call fcn.1003e93a
mov esi, eax
test esi, esi
js 0x1003f23b
mov eax, dword [ebp - 0x78]
mov ecx, ebx
mov dword [ebp - 0x88], eax
mov dword [edi + 0x24], eax
call fcn.10031a00
mov esi, eax
mov dword [ebp - 0x8c], esi
jmp 0x1003f119
mov ecx, ebx
call fcn.10030a0e
mov edx, eax
mov eax, esi
lea ecx, [edx + 0x30]
neg edx
sbb edx, edx
and edx, ecx
neg eax
lea ecx, [esi + 0x30]
sbb eax, eax
and eax, ecx
xor ecx, ecx
mov dword [ebp - 0x90], eax
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x1003f0c7
mov eax, dword [ebp - 0x90]
inc ecx
cmp ecx, 4
jne 0x1003f0b1
jmp 0x1003f10a
mov ecx, esi
call fcn.10030c3b
test eax, eax
je 0x1003f10a
mov ecx, esi
call fcn.10030d9c
cmp eax, 3
jne 0x1003f10a
lea edx, [ebp - 0x78]
mov ecx, esi
call fcn.1003e93a
mov esi, eax
test esi, esi
js 0x1003f23b
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.10031a5a
mov esi, eax
mov dword [ebp - 0x8c], eax
test esi, esi
jne 0x1003f08c
lea eax, [edi + 0x18]
or edx, 0xffffffff
push eax
push 0x1003e7a0
lea ecx, [edi + 0x10]
call fcn.1004f672
mov esi, eax
test esi, esi
js 0x1003f23b
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x1003f16b
mov eax, dword [ebp - 0x7c]
push esi
push 0x7fffffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x1003f1a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
test eax, eax
jle 0x1003f181
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x1003f196
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003f19b
movzx esi, si
or esi, ebx
jmp 0x1003f19b
mov esi, 0x80004005
mov ebx, dword [ebp - 0x70]
jmp 0x1003f23b
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x1003f1b2
mov eax, ecx
lea ecx, [edi + 4]
push ecx
push 0xa
push eax
mov ecx, ebx
call fcn.100427bb
mov esi, eax
test esi, esi
js 0x1003f23b
lea eax, [edi + 8]
mov ecx, ebx
push eax
push 0xa
push 1
call fcn.100427bb
mov esi, eax
test esi, esi
js 0x1003f23b
cmp dword [ebp - 0x84], 1
jbe 0x1003f207
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov eax, dword [ebp - 0x84]
dec eax
push eax
mov eax, dword [edi + 4]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
xor eax, eax
push eax
push eax
push edi
push 0x1003ed40
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x28], eax
test eax, eax
je 0x1003f16b
mov edx, edi
mov ecx, ebx
call fcn.10030be3
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x1003f23b
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x1003f267
mov edx, edi
mov ecx, ebx
call fcn.1003ed6c
jmp 0x1003f267
push 0xe42
push 0x10007cbc
push 0
push 0x10007d50
push 0
push 3
mov edx, ebx
pop ecx
call fcn.1002fae3
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4