Function at 0x409d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x10]
push edi
push 0x42dee4
push 0x17
push 0
push 0x427340
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x409f3a
mov eax, dword [edi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x409f3a
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
mov eax, dword [edi]
push edx
push 0x427320
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x409e56
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x409e56
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
js 0x409e56
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x409e53
nop dword [eax + eax]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x409e3c
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0040a1c0
mov esi, eax
test esi, esi
js 0x409e3c
push dword [ebp - 0x14]
mov ecx, dword [ebx + 0xc]
call fcn.004092b0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409e4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x409e00
lea edi, [ebx + 0x10]
mov eax, dword [ebx + 8]
test byte [eax + 0x170], 0x20
je 0x409eed
mov eax, dword [edi]
lea edx, [ebp - 0x10]
push edx
push 0x427330
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x409eed
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409ef0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x409eed
nop word [eax + eax]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x409ed6
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0040a1c0
test eax, eax
js 0x409ed6
push dword [ebp - 0x14]
mov ecx, dword [ebx + 0xc]
call fcn.004092b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409ee7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x409ea0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x409efe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x409f12
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test esi, esi
js 0x409f38
mov edi, dword [ebx + 0xc]
cmp dword [edi + 4], 0
je 0x409f38
lea eax, [ebp - 0x1c]
push eax
push 0
push edi
push 0x4087c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret