Function at 0x1000beb0
Capabilities:
Create thread

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
jne 0x1000bed5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov cl, byte [edi]
mov ebp, dword [esp + 0x80]
xor ebx, ebx
mov esi, edi
test cl, cl
je 0x1000bf74
mov ecx, dword [esp + 0x74]
and ecx, 1
mov dword [esp + 0x70], ecx
jmp 0x1000befd
mov ecx, dword [esp + 0x70]
xor eax, eax
cmp ecx, eax
je 0x1000bf61
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push ebp
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push esi
push edx
push eax
push ecx
call fcn.1000c330
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x44]
add esp, 0x28
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x1000bf4f
add dword [ecx], edx
test eax, eax
ja 0x1000c135
cmp ebp, edx
jb 0x1000c156
jmp 0x1000bf62
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x1000bef7
xor eax, eax
mov ecx, dword [esp + 0x74]
test cl, 1
jne 0x1000c2d4
mov esi, dword [esp + 0x84]
cmp esi, eax
je 0x1000bf8e
mov dword [esi], eax
cmp ebx, 1
jbe 0x1000c209
lea edx, [ebx*4 + 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
lea eax, [ebx + ebx*2 + 3]
lea ecx, [ebx + eax*4 + 1]
shl ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x24], eax
je 0x1000c1f9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [edi]
mov dword [esp + 0x20], eax
test cl, cl
mov dword [esp + 0x70], 0
mov ebx, edi
je 0x1000c0b8
lea esi, [eax + 8]
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x1000c00f
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x28], eax
je 0x1000c09d
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esi], eax
mov eax, dword [esp + 0x78]
lea edi, [esi - 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi - 4], edx
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edi], 0x34
mov dword [esi + 4], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
jne 0x1000c051
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esi + 0x14], eax
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x28]
xor eax, eax
push ecx
push eax
push edi
push 0x1000c2f0
push eax
push eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x80]
test eax, eax
mov dword [edx], eax
je 0x1000c09d
mov eax, dword [esp + 0x70]
add edx, 4
add esi, 0x34
inc eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x70], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x1000bff4
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
push 0xffffffffffffffff
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [esp + 0x70]
lea edx, [edi - 1]
cmp eax, edx
ja 0x1000c1ab
mov ebx, dword [esp + 0x7c]
test edi, edi
jbe 0x1000c1a8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], edi
lea edx, [eax + 0x2c]
mov ecx, dword [edx]
test ecx, ecx
jbe 0x1000c16a
lea eax, [ecx + 1]
cmp eax, ebp
ja 0x1000c174
mov esi, dword [edx - 0x10]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
add ebx, eax
sub ebp, eax
add ecx, eax
mov eax, dword [esp + 0x10]
cmp eax, 0x7a
mov dword [esp + 0x14], ecx
je 0x1000c17e
mov dword [esp + 0x10], 0
jmp 0x1000c17e
lea edx, [eax + 1]
cmp edx, ebp
ja 0x1000c144
mov ecx, dword [esp + 0x7c]
mov byte [eax + ecx], 0
pop edi
pop esi
pop ebp
mov dword [0x10023600], 0
pop ebx
add esp, 0x50
ret
pop edi
pop esi
pop ebp
mov dword [0x10023600], 0x7a
xor eax, eax
pop ebx
add esp, 0x50
ret
mov ecx, dword [edx - 0xc]
mov eax, dword [edx - 8]
cmp ecx, eax
jae 0x1000c185
mov dword [esp + 0x10], 0x7a
jmp 0x1000c185
mov esi, dword [esp + 0x84]
test esi, esi
je 0x1000c192
mov eax, dword [edx - 8]
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esp + 0x74]
add edx, 0x34
dec eax
mov dword [esp + 0x74], eax
jne 0x1000c0f2
mov edi, dword [esp + 0x70]
mov byte [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jbe 0x1000c1d2
mov ecx, dword [esp + 0x20]
lea esi, [ecx + 0x30]
mov edx, dword [esi]
push edx
call ebx
mov eax, dword [esi]
push eax
call ebp
add esi, 0x34
dec edi
jne 0x1000c1c2
mov esi, dword [esp + 0x24]
push esi
call ebx
push esi
call ebp
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
test edi, edi
jbe 0x1000c1f9
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
push ecx
call ebx
add esi, 4
dec edi
jne 0x1000c1ee
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000c2d4
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x30]
push eax
push edx
push 0x1000c2f0
push eax
push eax
mov dword [esp + 0x44], 0x34
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1000c2d4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c2cd
mov eax, dword [esp + 0x58]
test eax, eax
jbe 0x1000c2af
lea ecx, [eax + 1]
cmp ecx, ebp
ja 0x1000c2bb
mov byte [eax + ebx], 0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
jmp 0x1000c2c3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jae 0x1000c2c3
mov dword [esp + 0x10], 0x7a
test esi, esi
je 0x1000c2cd
mov ecx, dword [esp + 0x50]
mov dword [esi], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [0x10023600], edx
pop ebx
add esp, 0x50
ret