Function at 0x10d1760
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 0x10d178a
mov eax, dword [esi]
cmp dword [eax + 0x8ae4], 6
jb 0x10d1787
push eax
call fcn.010b9420
jmp 0x10d178a
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.010bc5f0
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10d1ba9
mov ecx, dword [esi]
cmp dword [ecx + 0x132a4], edi
jne 0x10d1b7e
push ebx
mov ebx, dword [ebp + 0x18]
jmp 0x10d17c3
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10d17d3
cmp dword [eax], 0
jne 0x10d1b50
test edi, edi
je 0x10d17ec
cmp edi, 0xffffffff
je 0x10d17ec
mov eax, dword [ecx + 0x1c0]
push edi
call eax
mov dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jne 0x10d1804
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10d1804
cmp eax, 0xffffffff
jne 0x10d1a7f
cmp dword [ebp + 0x2c], 0
je 0x10d1a5a
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10d19d5
push 0x100e5d8
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10d19d5
mov eax, dword [esi]
cmp dword [eax + 0x8aec], 0x2710
jb 0x10d19d5
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 + 0x164]
push ecx
call edx
test eax, eax
je 0x10d19d5
mov eax, dword [esi]
mov eax, dword [eax + 0x164]
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 0x10d19c4
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 0x10d19b6
mov ecx, dword [esi]
mov edx, dword [ecx + 0x288]
push 0x14
push 0x40
call edx
mov edi, eax
test edi, edi
je 0x10d19a8
mov eax, dword [esi]
mov ecx, dword [eax + 0x464]
push 1
push edi
call ecx
test eax, eax
je 0x10d199d
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x46c]
push 0
push eax
push 1
push edi
call ecx
test eax, eax
je 0x10d199d
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 + 0x498]
push ecx
call edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x194]
push edi
call eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x194]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x158]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x158]
push edx
call eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10d19f5
cmp eax, 0xffffffff
je 0x10d19f5
mov edx, dword [esi]
cmp dword [edx + 0x8aec], 0x2710
jae 0x10d1a7f
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x498]
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.010b8740
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esi]
push 0x1000
push 6
push ecx
push edx
call fcn.0102abc0
push 0x40
call fcn.0102ab20
mov ecx, dword [esi]
lea edx, [ecx + eax*4 + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
jmp 0x10d1a7f
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x498]
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 0x10d1b32
cmp eax, 0xffffffff
je 0x10d1b32
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx + 0x50c]
call eax
test eax, eax
jne 0x10d1ac8
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x324]
call edx
cmp eax, 0x217
je 0x10d1ac8
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [eax + 0x1c0]
push ecx
call edx
jmp 0x10d1b3f
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 0x10d1b3f
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 0x10d1b2a
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push fcn.010d15f0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x10d1b2a
cmp eax, 0xffffffff
jne 0x10d1b3f
push edi
call fcn.010d15f0
jmp 0x10d1b3f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x128]
push 0xa
call ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x132a4], 0
je 0x10d17c0
jmp 0x10d1b65
test edi, edi
je 0x10d1b7d
cmp edi, 0xffffffff
je 0x10d1b65
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0102b480
mov eax, dword [ebp + 8]
test eax, eax
je 0x10d1b7d
cmp eax, 0xffffffff
je 0x10d1b7d
mov edx, dword [esi]
lea ecx, [ebp + 8]
push ecx
push edx
call fcn.0102b480
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
test eax, eax
je 0x10d1b9a
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