Function at 0x440560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4405dd
push 0x4686fc
lea eax, [ebp + 0x1c]
push eax
call fcn.00401020
add esp, 8
test eax, eax
je 0x44059a
mov dword [ebp + 0xc], 0x19
jmp 0x4405dd
push 0x46870c
lea ecx, [ebp + 0x1c]
push ecx
call fcn.00401020
add esp, 8
test eax, eax
je 0x4405b8
mov dword [ebp + 0xc], 0x20
jmp 0x4405dd
push 0x46871c
lea edx, [ebp + 0x1c]
push edx
call fcn.00401020
add esp, 8
test eax, eax
je 0x4405d6
mov dword [ebp + 0xc], 0x20
jmp 0x4405dd
mov dword [ebp + 0xc], 0x19
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4405ea
mov dword [ebp + 0x10], 2
mov dword [ebp - 8], 0x43e630
push 0x148
call fcn.004088d8
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0x148
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x44064f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
je 0x440686
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x2c], edx
mov edi, dword [ebp - 0x10]
add edi, 0x38
mov ecx, 0xd
lea esi, [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x138], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44070f
mov dword [ebp - 0x14], 0x80004005
jmp 0x440749
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
jne 0x440722
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44070f
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1c], 0
je 0x440738
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x14], ecx
jmp 0x440749
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
jne 0x440755
xor eax, eax
jmp 0x440780
cmp dword [ebp - 0x10], 0
je 0x440774
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00408912
add esp, 4
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0044b220
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x48