Function at 0x40568c
Capabilities:
Resolve function by parsing pe exports
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c5c72
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x4c]
push eax
push 0x66b9d8
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x66bbc8
mov byte [esp + 0x27], 0
mov dword [esp + 0x60], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406302
mov esi, dword [esp + 0x4c]
push 0xc
call fcn.005812e3
pop ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x250], edi
cmp eax, edi
je 0x405750
mov dword [eax], vtable.StartupAreas::IFreeProcPtr.0
mov byte [esp + 0x250], bl
mov dword [eax], vtable.StartupAreas::FreeMemberFuncPtr_unsigned_short_int____cdecl_IUnknown::__unsigned_long_int__void___struct_ITaskService__.0
mov dword [eax + 4], 0x40f609
mov dword [eax + 8], esi
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], eax
jmp 0x405754
mov dword [esp + 0x1c], edi
or dword [esp + 0x250], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd0], eax
mov dword [esp + 0x250], 2
xor eax, eax
lea edi, [esp + 0x9c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0xbc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov eax, dword [esp + 0x7c]
lea esi, [esp + 0xcc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
xor edi, edi
cmp eax, edi
jl 0x4062e8
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x40]
push edx
push dword [esp + 0x74]
mov dword [esp + 0x48], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x4062e8
push dword [esp + 0x40]
lea esi, [esp + 0x30]
call fcn.0040dec7
mov byte [esp + 0x250], 3
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x54]
push edx
push edi
mov dword [esp + 0x5c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, edi
jl 0x4062ce
push dword [esp + 0x54]
lea esi, [esp + 0x60]
call fcn.0040df1b
mov byte [esp + 0x250], 4
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x4062b4
xor eax, eax
cmp dword [esp + 0x8c], edi
jle 0x4059b2
push 3
pop ecx
mov dword [esp + 0x20], edi
lea edx, [esp + 0x20]
push edx
mov word [esp + 0xa0], cx
inc eax
mov dword [esp + 0xa8], eax
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0xb0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x20]
test eax, eax
jl 0x40599f
push dword [esp + 0x20]
lea esi, [esp + 0x78]
call fcn.0040dec7
mov byte [esp + 0x250], 5
mov eax, dword [esp + 0x20]
and dword [esp + 0x24], 0
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x405985
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x68]
push dword [esp + 0x28]
call fcn.0040df6f
mov byte [esp + 0x250], 6
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push eax
call fcn.004085b5
mov byte [esp + 0x250], 7
lea eax, [esp + 0x14]
mov esi, 0x6810d0
push eax
mov ecx, esi
call fcn.00409ed0
test eax, eax
je 0x40592f
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00408678
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.00408678
lea esi, [esp + 0x14]
call fcn.00408830
push eax
push dword [esp + 0x2c]
call fcn.0040568c
pop ecx
pop ecx
test al, al
je 0x40595a
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 6
lea ecx, [esp + 0x14]
call fcn.004085f6
mov byte [esp + 0x250], 5
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 4
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x6c]
xor edi, edi
cmp eax, dword [esp + 0x8c]
jl 0x405868
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x48]
push edx
push ebx
mov dword [esp + 0x50], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp eax, edi
jl 0x4062b4
push dword [esp + 0x48]
lea esi, [esp + 0x68]
call fcn.0040dfc2
mov byte [esp + 0x250], 8
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x84], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x40629a
xor eax, eax
cmp dword [esp + 0x80], edi
jle 0x40629a
jmp 0x405a17
xor edi, edi
push 3
pop ecx
mov dword [esp + 0x60], edi
lea edx, [esp + 0x60]
push edx
mov word [esp + 0xa0], cx
inc eax
mov dword [esp + 0xa8], eax
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0xb0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x20]
xor edi, edi
cmp eax, edi
jl 0x406286
push dword [esp + 0x60]
lea esi, [esp + 0x3c]
call fcn.0040e016
mov byte [esp + 0x250], 9
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x40626c
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
push dword [esp + 0x5c]
call fcn.0040df6f
mov byte [esp + 0x250], 0xa
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
cmp eax, edi
jl 0x406252
push dword [esp + 0x7c]
lea esi, [esp + 0x88]
call fcn.0040e06a
mov byte [esp + 0x250], 0xb
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp eax, edi
jl 0x406235
push dword [esp + 0x50]
lea esi, [esp + 0x78]
call fcn.0040e0be
mov byte [esp + 0x250], 0xc
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x40621b
xor eax, eax
cmp dword [esp + 0x78], edi
jle 0x40621b
lea ecx, [eax + 1]
mov eax, dword [esp + 0x50]
lea esi, [esp + 0x34]
push esi
push ecx
mov dword [esp + 0x3c], edi
mov edx, dword [eax]
push eax
mov dword [esp + 0xd8], ecx
call dword [edx + 0x20]
cmp eax, edi
jl 0x40620a
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.0040e112
mov byte [esp + 0x250], 0xd
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x94]
push edx
push eax
call dword [ecx + 0x24]
cmp eax, edi
jl 0x4061f0
cmp dword [esp + 0x94], edi
je 0x405e96
cmp dword [esp + 0x94], 5
jne 0x4061f0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push 0x66bb58
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jl 0x4061f0
push dword [esp + 0x18]
lea esi, [esp + 0x94]
call fcn.0040e1ba
mov byte [esp + 0x250], 0x18
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, edi
jl 0x405e82
cmp dword [esp + 0x30], edi
je 0x405e82
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xc8]
push dword [esp + 0x34]
call fcn.0040df6f
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.004050ad
mov byte [esp + 0x250], 0x1a
push dword [esp + 0x70]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc0], 2
call fcn.0040865a
push dword [esp + 0x58]
lea eax, [esp + 0xc4]
push eax
call fcn.0040865a
push str.InprocServer32
lea esi, [esp + 0xd8]
call fcn.0040820f
mov byte [esp + 0x250], 0x1b
push dword [esp + 0x30]
lea esi, [esp + 0xf4]
call fcn.0040820f
mov byte [esp + 0x250], 0x1c
lea eax, [esp + 0xd4]
push eax
mov edx, esi
lea ecx, [esp + 0x19c]
call fcn.00406907
pop ecx
mov byte [esp + 0x250], 0x1d
cmp dword [eax + 0x18], 8
jb 0x405cbd
mov eax, dword [eax + 4]
jmp 0x405cc0
add eax, 4
lea ecx, [esp + 0x144]
push ecx
mov ecx, eax
call fcn.00404809
pop ecx
mov byte [esp + 0x250], 0x1e
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.004063cf
add esp, 0xc
neg al
sbb al, al
inc al
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x1d
push edi
push ebx
lea esi, [esp + 0x14c]
call fcn.00409da6
mov byte [esp + 0x250], 0x1c
push edi
push ebx
lea esi, [esp + 0x1a0]
call fcn.00409da6
mov byte [esp + 0x250], 0x1b
push edi
push ebx
lea esi, [esp + 0xf8]
call fcn.00409da6
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0xdc]
call fcn.00409da6
cmp byte [esp + 0x12], 0
je 0x405e50
push str.InprocServer32
lea esi, [esp + 0x110]
call fcn.0040820f
mov byte [esp + 0x250], 0x1f
push dword [esp + 0x30]
lea esi, [esp + 0x12c]
call fcn.0040820f
mov byte [esp + 0x250], 0x20
lea eax, [esp + 0x10c]
push eax
mov edx, esi
lea ecx, [esp + 0x180]
call fcn.00406907
pop ecx
mov byte [esp + 0x250], 0x21
cmp dword [eax + 0x18], 8
jb 0x405db7
mov eax, dword [eax + 4]
jmp 0x405dba
add eax, 4
lea ecx, [esp + 0x160]
push ecx
mov ecx, eax
call fcn.00404809
pop ecx
mov byte [esp + 0x250], 0x22
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.004063cf
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x21
push edi
push ebx
lea esi, [esp + 0x168]
call fcn.00409da6
mov byte [esp + 0x250], 0x20
push edi
push ebx
lea esi, [esp + 0x184]
call fcn.00409da6
mov byte [esp + 0x250], 0x1f
push edi
push ebx
lea esi, [esp + 0x130]
call fcn.00409da6
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0x114]
call fcn.00409da6
cmp byte [esp + 0x12], 0
je 0x405e50
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.004050e0
mov byte [esp + 0x250], 0x18
mov esi, dword [esp + 0xc4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xd
mov esi, dword [esp + 0x90]
jmp 0x4061e2
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push str.MbLk
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jl 0x4061f0
push dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040e166
mov byte [esp + 0x250], 0xe
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, edi
jl 0x4061d6
cmp dword [esp + 0x68], edi
je 0x4061d6
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x8c]
push dword [esp + 0x6c]
call fcn.0040df6f
mov byte [esp + 0x250], 0xf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
call dword [ecx + 0x38]
cmp eax, edi
jl 0x4061b9
cmp dword [esp + 0x44], edi
je 0x4061b9
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x70]
push dword [esp + 0x48]
call fcn.0040df6f
mov byte [esp + 0x250], 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [ecx + 0x30]
cmp eax, edi
jl 0x40619f
cmp dword [esp + 0x3c], edi
je 0x40619f
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xcc]
push dword [esp + 0x40]
call fcn.0040df6f
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.004050ad
mov byte [esp + 0x250], 0x12
push dword [esp + 0x70]
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb4], 2
call fcn.0040865a
push dword [esp + 0x58]
lea eax, [esp + 0xb8]
push eax
call fcn.0040865a
push dword [esp + 0x68]
lea esi, [esp + 0x20c]
call fcn.0040820f
mov byte [esp + 0x250], 0x13
cmp dword [esp + 0x3c], edi
je 0x406038
push 0x682324
lea esi, [esp + 0x1d4]
call fcn.0040820f
mov byte [esp + 0x250], 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x210]
call fcn.00409990
mov byte [esp + 0x250], 0x13
push edi
push ebx
call fcn.00409da6
push dword [esp + 0x3c]
lea eax, [esp + 0x20c]
push eax
call fcn.0040825c
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x406045
mov eax, 0x6810b8
push eax
lea esi, [esp + 0x228]
call fcn.0040820f
mov byte [esp + 0x250], 0x15
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x210]
mov ecx, esi
call fcn.00409990
cmp dword [esp + 0x23c], 8
mov ecx, dword [esp + 0x228]
jae 0x406083
lea ecx, [esp + 0x228]
lea eax, [esp + 0x1ec]
push eax
call fcn.00404809
pop ecx
mov byte [esp + 0x250], 0x16
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.004063cf
add esp, 0xc
neg al
sbb al, al
inc al
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x15
push edi
push ebx
lea esi, [esp + 0x1f4]
call fcn.00409da6
cmp byte [esp + 0x12], 0
je 0x406141
cmp dword [esp + 0x220], 8
mov ecx, dword [esp + 0x20c]
jae 0x4060ef
lea ecx, [esp + 0x20c]
lea eax, [esp + 0x1b4]
push eax
call fcn.00404809
pop ecx
mov byte [esp + 0x250], 0x17
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.004063cf
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x15
push edi
push ebx
lea esi, [esp + 0x1bc]
call fcn.00409da6
cmp byte [esp + 0x12], 0
je 0x406141
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x13
push edi
push ebx
lea esi, [esp + 0x22c]
call fcn.00409da6
mov byte [esp + 0x250], 0x12
push edi
push ebx
lea esi, [esp + 0x210]
call fcn.00409da6
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.004050e0
mov byte [esp + 0x250], 0x10
mov esi, dword [esp + 0xc8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xf
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xe
mov esi, dword [esp + 0x88]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xd
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xc
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0xcc]
cmp eax, dword [esp + 0x78]
jl 0x405b36
mov byte [esp + 0x250], 0xb
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 0xa
mov esi, dword [esp + 0x84]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 9
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 8
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0x80]
jl 0x405a15
mov byte [esp + 0x250], 4
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 3
mov esi, dword [esp + 0x5c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x250], 2
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
or dword [esp + 0x250], 0xffffffff
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret