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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be12f
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 0x6628f0
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x662ae0
mov byte [esp + 0x27], 0
mov dword [esp + 0x60], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406333
mov esi, dword [esp + 0x4c]
push 0xc
call fcn.00579757
pop ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x250], edi
cmp eax, edi
je 0x40577f
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], 0x40f863
mov dword [eax + 8], esi
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], eax
jmp 0x405783
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 0x406319
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 0x406319
push dword [esp + 0x40]
lea esi, [esp + 0x30]
call fcn.0040e122
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 0x4062ff
push dword [esp + 0x54]
lea esi, [esp + 0x60]
call fcn.0040e176
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 0x4062e5
xor eax, eax
cmp dword [esp + 0x8c], edi
jle 0x4059e3
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 0x4059d0
push dword [esp + 0x20]
lea esi, [esp + 0x78]
call fcn.0040e122
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 0x4059b6
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x68]
push dword [esp + 0x28]
call fcn.0040e1ca
mov byte [esp + 0x250], 6
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push eax
call fcn.00408518
mov byte [esp + 0x250], 7
lea eax, [esp + 0x14]
push eax
mov ecx, 0x69164c
call fcn.00409d1b
test eax, eax
je 0x405960
push 0x6916b4
lea eax, [esp + 0x18]
push eax
call fcn.004085db
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.004085db
lea esi, [esp + 0x14]
call fcn.00408793
push eax
push dword [esp + 0x2c]
call fcn.004056bb
pop ecx
pop ecx
test al, al
je 0x40598b
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 6
lea ecx, [esp + 0x14]
call fcn.00408559
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 0x405897
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 0x4062e5
push dword [esp + 0x48]
lea esi, [esp + 0x68]
call fcn.0040e21d
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 0x4062cb
xor eax, eax
cmp dword [esp + 0x80], edi
jle 0x4062cb
jmp 0x405a48
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 0x4062b7
push dword [esp + 0x60]
lea esi, [esp + 0x3c]
call fcn.0040e271
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 0x40629d
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
push dword [esp + 0x5c]
call fcn.0040e1ca
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 0x406283
push dword [esp + 0x7c]
lea esi, [esp + 0x88]
call fcn.0040e2c5
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 0x406266
push dword [esp + 0x50]
lea esi, [esp + 0x78]
call fcn.0040e319
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 0x40624c
xor eax, eax
cmp dword [esp + 0x78], edi
jle 0x40624c
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 0x40623b
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.0040e36d
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 0x406221
cmp dword [esp + 0x94], edi
je 0x405ec7
cmp dword [esp + 0x94], 5
jne 0x406221
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push 0x662a70
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jl 0x406221
push dword [esp + 0x18]
lea esi, [esp + 0x94]
call fcn.0040e415
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 0x405eb3
cmp dword [esp + 0x30], edi
je 0x405eb3
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xc8]
push dword [esp + 0x34]
call fcn.0040e1ca
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.0040510b
mov byte [esp + 0x250], 0x1a
push dword [esp + 0x70]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc0], 2
call fcn.004085bd
push dword [esp + 0x58]
lea eax, [esp + 0xc4]
push eax
call fcn.004085bd
push 0x691878
lea esi, [esp + 0xd8]
call fcn.00408172
mov byte [esp + 0x250], 0x1b
push dword [esp + 0x30]
lea esi, [esp + 0xf4]
call fcn.00408172
mov byte [esp + 0x250], 0x1c
lea eax, [esp + 0xd4]
push eax
mov edx, esi
lea ecx, [esp + 0x19c]
call fcn.00406938
pop ecx
mov byte [esp + 0x250], 0x1d
cmp dword [eax + 0x18], 8
jb 0x405cee
mov eax, dword [eax + 4]
jmp 0x405cf1
add eax, 4
lea ecx, [esp + 0x144]
push ecx
mov ecx, eax
call fcn.00404867
pop ecx
mov byte [esp + 0x250], 0x1e
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406400
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.00409bf1
mov byte [esp + 0x250], 0x1c
push edi
push ebx
lea esi, [esp + 0x1a0]
call fcn.00409bf1
mov byte [esp + 0x250], 0x1b
push edi
push ebx
lea esi, [esp + 0xf8]
call fcn.00409bf1
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0xdc]
call fcn.00409bf1
cmp byte [esp + 0x12], 0
je 0x405e81
push 0x691898
lea esi, [esp + 0x110]
call fcn.00408172
mov byte [esp + 0x250], 0x1f
push dword [esp + 0x30]
lea esi, [esp + 0x12c]
call fcn.00408172
mov byte [esp + 0x250], 0x20
lea eax, [esp + 0x10c]
push eax
mov edx, esi
lea ecx, [esp + 0x180]
call fcn.00406938
pop ecx
mov byte [esp + 0x250], 0x21
cmp dword [eax + 0x18], 8
jb 0x405de8
mov eax, dword [eax + 4]
jmp 0x405deb
add eax, 4
lea ecx, [esp + 0x160]
push ecx
mov ecx, eax
call fcn.00404867
pop ecx
mov byte [esp + 0x250], 0x22
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406400
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x21
push edi
push ebx
lea esi, [esp + 0x168]
call fcn.00409bf1
mov byte [esp + 0x250], 0x20
push edi
push ebx
lea esi, [esp + 0x184]
call fcn.00409bf1
mov byte [esp + 0x250], 0x1f
push edi
push ebx
lea esi, [esp + 0x130]
call fcn.00409bf1
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0x114]
call fcn.00409bf1
cmp byte [esp + 0x12], 0
je 0x405e81
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.00412ceb
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 0x406213
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 0x406221
push dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040e3c1
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 0x406207
cmp dword [esp + 0x68], edi
je 0x406207
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x8c]
push dword [esp + 0x6c]
call fcn.0040e1ca
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 0x4061ea
cmp dword [esp + 0x44], edi
je 0x4061ea
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x70]
push dword [esp + 0x48]
call fcn.0040e1ca
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 0x4061d0
cmp dword [esp + 0x3c], edi
je 0x4061d0
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xcc]
push dword [esp + 0x40]
call fcn.0040e1ca
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.0040510b
mov byte [esp + 0x250], 0x12
push dword [esp + 0x70]
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb4], 2
call fcn.004085bd
push dword [esp + 0x58]
lea eax, [esp + 0xb8]
push eax
call fcn.004085bd
push dword [esp + 0x68]
lea esi, [esp + 0x20c]
call fcn.00408172
mov byte [esp + 0x250], 0x13
cmp dword [esp + 0x3c], edi
je 0x406069
push 0x691870
lea esi, [esp + 0x1d4]
call fcn.00408172
mov byte [esp + 0x250], 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x210]
call fcn.004097db
mov byte [esp + 0x250], 0x13
push edi
push ebx
call fcn.00409bf1
push dword [esp + 0x3c]
lea eax, [esp + 0x20c]
push eax
call fcn.004081bf
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x406076
mov eax, 0x691874
push eax
lea esi, [esp + 0x228]
call fcn.00408172
mov byte [esp + 0x250], 0x15
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x210]
mov ecx, esi
call fcn.004097db
cmp dword [esp + 0x23c], 8
mov ecx, dword [esp + 0x228]
jae 0x4060b4
lea ecx, [esp + 0x228]
lea eax, [esp + 0x1ec]
push eax
call fcn.00404867
pop ecx
mov byte [esp + 0x250], 0x16
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406400
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.00409bf1
cmp byte [esp + 0x12], 0
je 0x406172
cmp dword [esp + 0x220], 8
mov ecx, dword [esp + 0x20c]
jae 0x406120
lea ecx, [esp + 0x20c]
lea eax, [esp + 0x1b4]
push eax
call fcn.00404867
pop ecx
mov byte [esp + 0x250], 0x17
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406400
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x15
push edi
push ebx
lea esi, [esp + 0x1bc]
call fcn.00409bf1
cmp byte [esp + 0x12], 0
je 0x406172
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x13
push edi
push ebx
lea esi, [esp + 0x22c]
call fcn.00409bf1
mov byte [esp + 0x250], 0x12
push edi
push ebx
lea esi, [esp + 0x210]
call fcn.00409bf1
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.00412ceb
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 0x405b67
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 0x405a46
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.005796dc
mov esp, ebp
pop ebp
ret