Function at 0x10006700
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
test ebx, ebx
push edi
jle 0x10006928
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x10006928
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3c]
call fcn.10001c50
cmp eax, ebx
je 0x1000675e
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [esi]
add esi, 4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 4]
mov ebp, dword [esi]
mov edi, edx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edx
lea esi, [ecx + edx + 1]
or ecx, 0xffffffff
mov edi, esi
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ebp
lea eax, [ecx + esi + 1]
mov dword [esp + 0x1c], eax
ja 0x1000691b
mov ecx, ebp
xor ecx, ebx
test ecx, 0xffff0000
jne 0x1000691b
cmp byte [edx], 0
je 0x1000691b
cmp byte [esi], 0
je 0x1000691b
cmp byte [eax], 0
je 0x1000691b
mov ecx, ebp
mov eax, 0x66666667
sub ecx, ebx
inc ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x38], edx
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
je 0x100067f9
inc dword [esp + 0x38]
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0xb
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x210
mov dword [esp + 0x30], esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 8
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [esp + 0x2c], eax
mov dword [ecx + 0x34], 1
xor ebp, ebp
push 0x30c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0xc3
xor eax, eax
mov edi, esi
mov edx, dword [esp + 0x38]
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0xc]
push 0x80
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
mov dword [esi], edx
call ebx
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x10c]
push 0x80
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x20c]
push 0x80
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
mov ecx, dword [esp + 0x38]
mov eax, ebp
imul eax, ecx
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esi + 4], eax
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esi + 8], eax
jb 0x100068cb
mov dword [esi + 8], ecx
mov ebp, 0x14
push esi
push 0
push 0x10006560
call dword [sym.imp.MSVCRT.dll__beginthread]
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [ecx + ebp*4], eax
inc ebp
cmp ebp, 0xa
jle 0x1000683a
mov edx, dword [esp + 0x2c]
push edx
push 0
push 0x10006690
call dword [sym.imp.MSVCRT.dll__beginthread]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push edx
mov dword [ecx + 0x28], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret