Function at 0x40e47c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
sub esp, 0x64
push 0x54
mov eax, 0x4640ac
call fcn.00450d5a
mov ebx, ecx
and dword [ebp - 4], 0
cmp byte [ebx + 0x10c], 0
jne 0x40e4a5
mov eax, 0x8020000d
call fcn.0040426a
cmp byte [ebx + 0x10d], 0
jne 0x40e4b5
mov eax, 0x8020000b
jmp 0x40e4a0
push 0x3000000f
lea eax, [ebp - 0x38]
push eax
call fcn.00410b4e
mov byte [ebp - 4], 1
push 0x30000010
lea esi, [ebp - 0x60]
call fcn.00412d79
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x18]
and dword [ebp + 0x60], 0
mov esi, dword [ebp + 0x70]
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40e8b7
test edi, edi
je 0x40e8ad
push dword [esi]
push 0x64
push edi
call fcn.0044f907
add esp, 0xc
mov eax, dword [ebx + 0xe8]
cmp eax, 0x20008
je 0x40e567
cmp eax, 0x10008
jne 0x40e524
cmp byte [ebx + 0x185], 0
jne 0x40e567
and dword [ebp + 0x70], 0
mov byte [ebp - 4], 8
mov eax, dword [esi]
mov ecx, dword [ebp + 0x78]
mov edx, dword [ecx]
lea edi, [ebp + 0x70]
push edi
push 0
push eax
call dword [edx + 8]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], eax
test eax, eax
jl 0x40e555
mov eax, edi
push eax
push esi
mov ecx, ebx
call fcn.0040e381
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 2
push dword [ebp + 0x70]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40e865
push dword [ebx + 0xd4]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebx + 0xd8]
call esi
push dword [ebp + 0x74]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.00412b40
mov dword [ebp + 0x64], eax
test eax, eax
jl 0x40e865
mov esi, dword [ebp + 0x78]
mov dword [ebx + 0x174], esi
lea edi, [ebx + 0x178]
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [edi], 0
mov eax, dword [ebp + 0x70]
call fcn.00404351
lea edi, [ebx + 0x17c]
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [edi], 0
push dword [ebx + 0x180]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [ebx + 0x184], 0
lea eax, [ebx + 0x170]
push eax
xor edi, edi
push edi
push ebx
push 0x40fd8f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x16c], eax
mov eax, dword [ebx + 0xb8]
mov dword [ebp + 0x54], eax
mov eax, dword [ebx + 0xd4]
mov dword [ebp + 0x58], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp + 0x5c], eax
push dword [ebp + 0x74]
push edi
lea eax, [ebp + 0x54]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp + 0x78], eax
mov eax, dword [ebx + 0x16c]
cmp eax, edi
je 0x40e63d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0x78], edi
je 0x40e852
cmp dword [ebp + 0x78], 1
jne 0x40e759
mov dword [ebp + 0x78], edi
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x70]
mov eax, dword [eax]
mov edx, dword [esi]
lea ecx, [ebp + 0x78]
push ecx
push edi
push eax
mov ecx, esi
call dword [edx + 8]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x28]
push eax
call fcn.00410b81
mov byte [ebp - 4], 4
push 0x30000012
lea esi, [ebp]
call fcn.00412d79
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0x48]
test esi, esi
je 0x40e6d6
mov eax, dword [ebp + 0x70]
push dword [eax]
push 0x64
push esi
call fcn.0044f907
add esp, 0xc
cmp dword [ebp + 0x64], 0
jne 0x40e6dd
push dword [ebp + 0x78]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40e6cd
push dword [ebp + 0x78]
push 0x32
lea eax, [esi + 0xc8]
push eax
call fcn.0044f907
add esp, 0xc
jmp 0x40e6e6
mov dword [ebp + 0x64], 0x80100013
jmp 0x40e6dd
mov dword [ebp + 0x64], 0x80100015
cmp dword [ebp + 0x64], 0x80100015
je 0x40e72e
mov eax, dword [ebp + 0x64]
mov dword [esi + 0x190], eax
mov eax, dword [ebp + 0x74]
mov dword [esi + 0x194], eax
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x28]
push eax
mov ecx, ebx
call fcn.00412b40
mov dword [esi + 0x190], eax
test eax, eax
jge 0x40e717
mov dword [ebp + 0x64], eax
jmp 0x40e72e
push dword [ebx + 0x180]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 4
lea esi, [ebp]
call fcn.00412d5b
mov byte [ebp - 4], 3
lea eax, [ebp + 0x28]
push eax
call fcn.00410ac4
mov byte [ebp - 4], 2
push dword [ebp + 0x78]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40e859
cmp dword [ebp + 0x78], 2
jne 0x40e852
mov eax, dword [ebx + 0xe0]
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebp + 0x70]
mov edx, dword [edx]
mov edi, dword [esi]
push eax
push ecx
push edx
mov ecx, esi
call dword [edi + 0xc]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x28]
push eax
call fcn.00410b81
mov byte [ebp - 4], 6
push 0x30000012
lea esi, [ebp]
call fcn.00412d79
mov byte [ebp - 4], 7
mov esi, dword [ebp + 0x48]
test esi, esi
je 0x40e7bb
mov eax, dword [ebp + 0x70]
push dword [eax]
push 0x64
push esi
call fcn.0044f907
add esp, 0xc
jmp 0x40e7c2
mov dword [ebp + 0x64], 0x80100015
cmp dword [ebp + 0x64], 0x80100015
je 0x40e813
mov eax, dword [ebp + 0x64]
mov dword [esi + 0x190], eax
mov eax, dword [ebp + 0x74]
mov dword [esi + 0x194], eax
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x28]
push eax
mov ecx, ebx
call fcn.00412b40
mov dword [esi + 0x190], eax
test eax, eax
jge 0x40e7fc
mov dword [ebp + 0x64], eax
jmp 0x40e813
push dword [ebx + 0x180]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebx + 0xdc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
and dword [ebx + 0xdc], 0
push dword [ebx + 0xe0]
call esi
and dword [ebx + 0xe0], 0
mov byte [ebp - 4], 6
lea esi, [ebp]
call fcn.00412d5b
mov byte [ebp - 4], 2
lea eax, [ebp + 0x28]
push eax
call fcn.00410ac4
jmp 0x40e859
mov dword [ebp + 0x64], 0x80100026
push dword [ebx + 0x180]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0x64], 0
jne 0x40e871
cmp dword [ebp + 0x60], 0
je 0x40e878
mov dword [ebp + 0x64], 0x80100020
mov byte [ebp - 4], 1
lea esi, [ebp - 0x60]
call fcn.00412d5b
mov byte [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.00410ac4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0xc
mov eax, 0x80100015
jmp 0x40e4a0
mov eax, 0x80100013
mov dword [ebp + 0x64], eax
jmp 0x40e4a0