Function at 0x40ce10
Capabilities:
Create thread

Disassembly:
sub esp, 0x48
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
mov ecx, 0xd
lea esi, [esp + 0x6c]
lea edi, [esp + 0x20]
mov dword [esp + 0x10], ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40ceb1
lea ecx, [esp + 0x24]
push 0x43bc7c
push ecx
call section..text
add esp, 8
test eax, eax
je 0x40ce6f
mov dword [esp + 0x60], 0x19
jmp 0x40ceb9
lea edx, [esp + 0x24]
push 0x43bc8c
push edx
call section..text
add esp, 8
test eax, eax
je 0x40ce8f
mov dword [esp + 0x60], 0x20
jmp 0x40ceb9
lea eax, [esp + 0x24]
push 0x43bc9c
push eax
call section..text
add esp, 8
neg eax
sbb eax, eax
and eax, 7
add eax, 0x19
mov dword [esp + 0x60], eax
jmp 0x40ceb9
test eax, eax
je 0x40d094
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
jne 0x40cecc
mov dword [esp + 0x64], 2
jmp 0x40cedd
test eax, eax
je 0x40d094
cmp eax, 1
je 0x40d094
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d094
lea ecx, [esp + 0x24]
push 0x43bc7c
push ecx
call section..text
add esp, 8
test eax, eax
mov dword [esp + 0x14], 0x4083b0
jne 0x40cf13
mov dword [esp + 0x14], 0x4099a0
push 0x144
call fcn.00418905
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 4
mov ebp, eax
push ebx
mov dword [ebp], 0x144
call esi
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea edx, [eax + eax + 2]
push edx
call edi
test eax, eax
mov dword [ebp + 4], eax
je 0x40cf4e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [eax + eax + 2]
push ecx
call edi
xor esi, esi
cmp eax, esi
mov dword [ebp + 8], eax
je 0x40cf71
mov edx, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push esi
mov edi, 1
push edi
push esi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp + 0x14], eax
je 0x40cf91
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x64]
fld1
mov eax, dword [esp + 0x60]
fstp dword [ebp + 0x140]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x28], ecx
lea edi, [ebp + 0x38]
mov ecx, 0xd
lea esi, [esp + 0x20]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
test al, 1
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x138], edi
je 0x40d00a
push 0x20
mov dword [ebp + 0x34], edi
call fcn.00418905
add esp, 4
mov esi, eax
push ebx
mov dword [esi], 0x20
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, edi
mov dword [esi + 4], eax
je 0x40d007
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 0x34], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x40d04e
mov esi, 0x80004005
push ebp
call fcn.00418935
add esp, 4
mov eax, esi
call fcn.00406530
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004217dd
add esp, 0x48
ret 0x48
cmp dword [ebp + 0x20], edi
jne 0x40d069
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xa
call esi
cmp dword [ebp + 0x20], edi
je 0x40d060
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x40d074
mov esi, eax
jmp 0x40d029
mov edx, dword [esp + 0x18]
pop edi
mov dword [ebp + 0xc], ebx
pop esi
mov dword [edx], ebp
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004217dd
add esp, 0x48
ret 0x48
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 3
call fcn.004217dd
add esp, 0x48
ret 0x48