Function at 0x10d2c10
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x2c], edi
je 0x10d2c3a
mov eax, dword [esi]
cmp dword [eax + 0x8aec], 6
jb 0x10d2c37
push eax
call fcn.010ba490
jmp 0x10d2c3a
mov dword [ebp + 0x2c], edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], edi
mov edx, dword [esi]
push ecx
push edx
mov dword [ebp + 8], edi
call fcn.010bd660
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10d3059
mov ecx, dword [esi]
cmp dword [ecx + 0x132ac], edi
jne 0x10d302e
push ebx
mov ebx, dword [ebp + 0x18]
jmp 0x10d2c73
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10d2c83
cmp dword [eax], 0
jne 0x10d3000
test edi, edi
je 0x10d2c9c
cmp edi, 0xffffffff
je 0x10d2c9c
mov eax, dword [ecx + 0x1c8]
push edi
call eax
mov dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jne 0x10d2cb4
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10d2cb4
cmp eax, 0xffffffff
jne 0x10d2f2f
cmp dword [ebp + 0x2c], 0
je 0x10d2f0a
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10d2e85
push 0x100e730
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10d2e85
mov eax, dword [esi]
cmp dword [eax + 0x8af4], 0x2710
jb 0x10d2e85
xor ecx, ecx
lea edx, [ebp - 0xc]
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
push 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0xf
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 1
mov edx, dword [eax + 0x16c]
push ecx
call edx
test eax, eax
je 0x10d2e85
mov eax, dword [esi]
mov eax, dword [eax + 0x16c]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 1
mov edi, 2
push edi
push edi
lea edx, [ebp - 0x20]
push edx
call eax
test eax, eax
je 0x10d2e74
push 0x40
lea ecx, [ebp - 0x6c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0xc]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x50], edx
lea edx, [ebp + 0x18]
push edx
push eax
mov ecx, 0xe0000000
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 8]
push eax
push edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x10d2e66
mov ecx, dword [esi]
mov edx, dword [ecx + 0x294]
push 0x14
push 0x40
call edx
mov edi, eax
test edi, edi
je 0x10d2e58
mov eax, dword [esi]
mov ecx, dword [eax + 0x470]
push 1
push edi
call ecx
test eax, eax
je 0x10d2e4d
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x478]
push 0
push eax
push 1
push edi
call ecx
test eax, eax
je 0x10d2e4d
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
push ebx
push 0xff
push 6
push 3
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], edi
mov edx, dword [edx + 0x4a4]
push ecx
call edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x19c]
push edi
call eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x19c]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x160]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x160]
push edx
call eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10d2ea5
cmp eax, 0xffffffff
je 0x10d2ea5
mov edx, dword [esi]
cmp dword [edx + 0x8af4], 0x2710
jae 0x10d2f2f
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x4a4]
push ecx
push 0
push ebx
push ebx
push 0xff
push 6
push 3
push edi
call edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, dword [esi]
lea edx, [edi + 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x40
push edi
call fcn.010b96d0
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esi]
push 0x1000
push 6
push ecx
push edx
call fcn.0102b2e0
push 0x40
call fcn.0102b240
mov ecx, dword [esi]
lea edx, [ecx + eax*4 + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
jmp 0x10d2f2f
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x4a4]
push ecx
push 0
push ebx
push ebx
push 0xff
push 6
push 3
push edx
call eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
test eax, eax
je 0x10d2fe2
cmp eax, 0xffffffff
je 0x10d2fe2
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx + 0x518]
call eax
test eax, eax
jne 0x10d2f78
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x330]
call edx
cmp eax, 0x217
je 0x10d2f78
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [eax + 0x1c8]
push ecx
call edx
jmp 0x10d2fef
push 0x1d
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10d2fef
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp + 0x28]
mov dword [edi + 0x18], edx
mov dword [edi], esi
mov dword [edi + 0x10], ecx
test eax, eax
je 0x10d2fda
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push fcn.010d2a90
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x10d2fda
cmp eax, 0xffffffff
jne 0x10d2fef
push edi
call fcn.010d2a90
jmp 0x10d2fef
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x130]
push 0xa
call ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x132ac], 0
je 0x10d2c70
jmp 0x10d3015
test edi, edi
je 0x10d302d
cmp edi, 0xffffffff
je 0x10d3015
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0102bbe0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10d302d
cmp eax, 0xffffffff
je 0x10d302d
mov edx, dword [esi]
lea ecx, [ebp + 8]
push ecx
push edx
call fcn.0102bbe0
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
test eax, eax
je 0x10d304a
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x28