Function at 0x10ca630
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 0x10ca65a
mov eax, dword [esi]
cmp dword [eax + 0x819c], 6
jb 0x10ca657
push eax
call fcn.010b2650
jmp 0x10ca65a
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.010b5830
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10caa79
mov ecx, dword [esi]
cmp dword [ecx + 0x1295c], edi
jne 0x10caa4e
push ebx
mov ebx, dword [ebp + 0x18]
jmp 0x10ca693
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10ca6a3
cmp dword [eax], 0
jne 0x10caa20
test edi, edi
je 0x10ca6bc
cmp edi, 0xffffffff
je 0x10ca6bc
mov eax, dword [ecx + 0x1c0]
push edi
call eax
mov dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jne 0x10ca6d4
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10ca6d4
cmp eax, 0xffffffff
jne 0x10ca94f
cmp dword [ebp + 0x2c], 0
je 0x10ca92a
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10ca8a5
push 0x100dd10
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10ca8a5
mov eax, dword [esi]
cmp dword [eax + 0x81a4], 0x2710
jb 0x10ca8a5
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 0x10ca8a5
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 0x10ca894
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 0x10ca886
mov ecx, dword [esi]
mov edx, dword [ecx + 0x288]
push 0x14
push 0x40
call edx
mov edi, eax
test edi, edi
je 0x10ca878
mov eax, dword [esi]
mov ecx, dword [eax + 0x464]
push 1
push edi
call ecx
test eax, eax
je 0x10ca86d
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 0x10ca86d
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 0x10ca8c5
cmp eax, 0xffffffff
je 0x10ca8c5
mov edx, dword [esi]
cmp dword [edx + 0x81a4], 0x2710
jae 0x10ca94f
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.010b1980
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esi]
push 0x1000
push 6
push ecx
push edx
call fcn.01028540
push 0x40
call fcn.010284a0
mov ecx, dword [esi]
lea edx, [ecx + eax*4 + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
jmp 0x10ca94f
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 0x10caa02
cmp eax, 0xffffffff
je 0x10caa02
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx + 0x508]
call eax
test eax, eax
jne 0x10ca998
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x324]
call edx
cmp eax, 0x217
je 0x10ca998
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [eax + 0x1c0]
push ecx
call edx
jmp 0x10caa0f
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 0x10caa0f
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 0x10ca9fa
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push fcn.010ca4c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x10ca9fa
cmp eax, 0xffffffff
jne 0x10caa0f
push edi
call fcn.010ca4c0
jmp 0x10caa0f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x128]
push 0xa
call ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x1295c], 0
je 0x10ca690
jmp 0x10caa35
test edi, edi
je 0x10caa4d
cmp edi, 0xffffffff
je 0x10caa35
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
push eax
call fcn.01028e00
mov eax, dword [ebp + 8]
test eax, eax
je 0x10caa4d
cmp eax, 0xffffffff
je 0x10caa4d
mov edx, dword [esi]
lea ecx, [ebp + 8]
push ecx
push edx
call fcn.01028e00
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
test eax, eax
je 0x10caa6a
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