Function at 0x406170
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0xffffffffffffffff
push 0x43ce7f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x4c], 1
lea eax, [esp + 0x18]
push eax
push 0x440704
push 1
push ebx
push 0x4408f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4064f5
cmp dword [esp + 0x18], ebx
je 0x4064f5
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x4c], 2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 8], esi
push ebp
mov dword [eax + 0xc], edi
call edx
xor ebp, ebp
cmp eax, ebp
jge 0x406284
mov byte [esp + 0x4c], 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call fcn.00401e20
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x4c], 4
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
mov edi, 0x448b5c
call fcn.0041d9f0
mov byte [esp + 0x4c], 5
mov eax, dword [eax]
cmp eax, ebp
je 0x4062af
mov eax, dword [eax]
jmp 0x4062b1
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
push esi
call eax
mov edi, eax
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40630c
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x406308
cmp esi, ebp
je 0x406308
mov eax, dword [esi]
cmp eax, ebp
je 0x4062ef
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4062ff
push eax
call fcn.0041cf38
add esp, 4
push esi
call fcn.0041cf38
add esp, 4
mov dword [esp + 0x28], ebp
cmp edi, ebp
jge 0x406359
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401e20
mov byte [esp + 0x4c], 1
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x4c], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.00401e20
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x20], ebp
mov byte [esp + 0x4c], 7
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
call fcn.0041d9f0
mov byte [esp + 0x4c], 8
mov eax, dword [eax]
mov dword [esp + 0x24], 1
cmp eax, ebp
je 0x40638b
mov eax, dword [eax]
jmp 0x40638d
xor eax, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
call edx
test eax, eax
jl 0x4063a9
cmp dword [esp + 0x20], ebp
je 0x4063a9
mov bl, 1
jmp 0x4063ab
xor bl, bl
mov dword [esp + 0x4c], 7
mov eax, 1
mov dword [esp + 0x24], eax
and eax, 0xfffffffe
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x406409
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x406405
cmp esi, ebp
je 0x406405
mov eax, dword [esi]
cmp eax, ebp
je 0x4063ec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4063fc
push eax
call fcn.0041cf38
add esp, 4
push esi
call fcn.0041cf38
add esp, 4
mov dword [esp + 0x28], ebp
test bl, bl
je 0x40649d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push ebp
push eax
call edx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
call fcn.0041d9f0
mov byte [esp + 0x4c], 9
mov eax, dword [eax]
cmp eax, ebp
je 0x40643b
mov eax, dword [eax]
jmp 0x40643d
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x3c]
push ebp
push eax
push esi
call edx
test eax, eax
setge bl
mov byte [esp + 0x4c], 7
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x406497
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x406493
cmp esi, ebp
je 0x406493
mov eax, dword [esi]
cmp eax, ebp
je 0x40647a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40648a
push eax
call fcn.0041cf38
add esp, 4
push esi
call fcn.0041cf38
add esp, 4
mov dword [esp + 0x28], ebp
test bl, bl
mov bl, 1
jne 0x4064a1
mov bl, byte [esp + 0x17]
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4064b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4064cb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x4c], 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x406507
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x406507
mov dword [esp + 0x4c], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.00401e20
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret