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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b77b0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
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 0x65b930
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x65bb20
mov byte [esp + 0x27], 0
mov dword [esp + 0x60], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406368
mov esi, dword [esp + 0x4c]
push 0xc
call fcn.00573487
pop ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x250], edi
cmp eax, edi
je 0x4057b4
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], 0x40f7a8
mov dword [eax + 8], esi
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], eax
jmp 0x4057b8
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 0x40634e
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 0x40634e
push dword [esp + 0x40]
lea esi, [esp + 0x30]
call fcn.0040e060
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 0x406334
push dword [esp + 0x54]
lea esi, [esp + 0x60]
call fcn.0040e0b4
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 0x40631a
xor eax, eax
cmp dword [esp + 0x8c], edi
jle 0x405a18
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 0x405a05
push dword [esp + 0x20]
lea esi, [esp + 0x78]
call fcn.0040e060
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 0x4059eb
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x68]
push dword [esp + 0x28]
call fcn.0040e108
mov byte [esp + 0x250], 6
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push eax
call fcn.0040852d
mov byte [esp + 0x250], 7
lea eax, [esp + 0x14]
push eax
mov ecx, 0x689f94
call fcn.00409ce9
test eax, eax
je 0x405995
push 0x689ffc
lea eax, [esp + 0x18]
push eax
call fcn.004085f0
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.004085f0
lea esi, [esp + 0x14]
call fcn.004087a8
push eax
push dword [esp + 0x2c]
call fcn.004056f0
pop ecx
pop ecx
test al, al
je 0x4059c0
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 6
lea ecx, [esp + 0x14]
call fcn.0040856e
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 0x4058cc
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 0x40631a
push dword [esp + 0x48]
lea esi, [esp + 0x68]
call fcn.0040e15b
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 0x406300
xor eax, eax
cmp dword [esp + 0x80], edi
jle 0x406300
jmp 0x405a7d
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 0x4062ec
push dword [esp + 0x60]
lea esi, [esp + 0x3c]
call fcn.0040e1af
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 0x4062d2
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
push dword [esp + 0x5c]
call fcn.0040e108
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 0x4062b8
push dword [esp + 0x7c]
lea esi, [esp + 0x88]
call fcn.0040e203
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 0x40629b
push dword [esp + 0x50]
lea esi, [esp + 0x78]
call fcn.0040e257
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 0x406281
xor eax, eax
cmp dword [esp + 0x78], edi
jle 0x406281
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 0x406270
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.0040e2ab
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 0x406256
cmp dword [esp + 0x94], edi
je 0x405efc
cmp dword [esp + 0x94], 5
jne 0x406256
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push 0x65bab0
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jl 0x406256
push dword [esp + 0x18]
lea esi, [esp + 0x94]
call fcn.0040e353
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 0x405ee8
cmp dword [esp + 0x30], edi
je 0x405ee8
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xc8]
push dword [esp + 0x34]
call fcn.0040e108
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.00405111
mov byte [esp + 0x250], 0x1a
push dword [esp + 0x70]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc0], 2
call fcn.004085d2
push dword [esp + 0x58]
lea eax, [esp + 0xc4]
push eax
call fcn.004085d2
push 0x68a1c0
lea esi, [esp + 0xd8]
call fcn.00408187
mov byte [esp + 0x250], 0x1b
push dword [esp + 0x30]
lea esi, [esp + 0xf4]
call fcn.00408187
mov byte [esp + 0x250], 0x1c
lea eax, [esp + 0xd4]
push eax
mov edx, esi
lea ecx, [esp + 0x19c]
call fcn.0040696d
pop ecx
mov byte [esp + 0x250], 0x1d
cmp dword [eax + 0x18], 8
jb 0x405d23
mov eax, dword [eax + 4]
jmp 0x405d26
add eax, 4
lea ecx, [esp + 0x144]
push ecx
mov ecx, eax
call fcn.0040486d
pop ecx
mov byte [esp + 0x250], 0x1e
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406435
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.00409bbf
mov byte [esp + 0x250], 0x1c
push edi
push ebx
lea esi, [esp + 0x1a0]
call fcn.00409bbf
mov byte [esp + 0x250], 0x1b
push edi
push ebx
lea esi, [esp + 0xf8]
call fcn.00409bbf
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0xdc]
call fcn.00409bbf
cmp byte [esp + 0x12], 0
je 0x405eb6
push 0x68a1e0
lea esi, [esp + 0x110]
call fcn.00408187
mov byte [esp + 0x250], 0x1f
push dword [esp + 0x30]
lea esi, [esp + 0x12c]
call fcn.00408187
mov byte [esp + 0x250], 0x20
lea eax, [esp + 0x10c]
push eax
mov edx, esi
lea ecx, [esp + 0x180]
call fcn.0040696d
pop ecx
mov byte [esp + 0x250], 0x21
cmp dword [eax + 0x18], 8
jb 0x405e1d
mov eax, dword [eax + 4]
jmp 0x405e20
add eax, 4
lea ecx, [esp + 0x160]
push ecx
mov ecx, eax
call fcn.0040486d
pop ecx
mov byte [esp + 0x250], 0x22
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406435
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x21
push edi
push ebx
lea esi, [esp + 0x168]
call fcn.00409bbf
mov byte [esp + 0x250], 0x20
push edi
push ebx
lea esi, [esp + 0x184]
call fcn.00409bbf
mov byte [esp + 0x250], 0x1f
push edi
push ebx
lea esi, [esp + 0x130]
call fcn.00409bbf
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0x114]
call fcn.00409bbf
cmp byte [esp + 0x12], 0
je 0x405eb6
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.00405144
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 0x406248
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 0x406256
push dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040e2ff
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 0x40623c
cmp dword [esp + 0x68], edi
je 0x40623c
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x8c]
push dword [esp + 0x6c]
call fcn.0040e108
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 0x40621f
cmp dword [esp + 0x44], edi
je 0x40621f
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x70]
push dword [esp + 0x48]
call fcn.0040e108
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 0x406205
cmp dword [esp + 0x3c], edi
je 0x406205
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xcc]
push dword [esp + 0x40]
call fcn.0040e108
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.00405111
mov byte [esp + 0x250], 0x12
push dword [esp + 0x70]
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb4], 2
call fcn.004085d2
push dword [esp + 0x58]
lea eax, [esp + 0xb8]
push eax
call fcn.004085d2
push dword [esp + 0x68]
lea esi, [esp + 0x20c]
call fcn.00408187
mov byte [esp + 0x250], 0x13
cmp dword [esp + 0x3c], edi
je 0x40609e
push 0x68a1b8
lea esi, [esp + 0x1d4]
call fcn.00408187
mov byte [esp + 0x250], 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x210]
call fcn.004097a9
mov byte [esp + 0x250], 0x13
push edi
push ebx
call fcn.00409bbf
push dword [esp + 0x3c]
lea eax, [esp + 0x20c]
push eax
call fcn.004081d4
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x4060ab
mov eax, 0x68a1bc
push eax
lea esi, [esp + 0x228]
call fcn.00408187
mov byte [esp + 0x250], 0x15
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x210]
mov ecx, esi
call fcn.004097a9
cmp dword [esp + 0x23c], 8
mov ecx, dword [esp + 0x228]
jae 0x4060e9
lea ecx, [esp + 0x228]
lea eax, [esp + 0x1ec]
push eax
call fcn.0040486d
pop ecx
mov byte [esp + 0x250], 0x16
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406435
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.00409bbf
cmp byte [esp + 0x12], 0
je 0x4061a7
cmp dword [esp + 0x220], 8
mov ecx, dword [esp + 0x20c]
jae 0x406155
lea ecx, [esp + 0x20c]
lea eax, [esp + 0x1b4]
push eax
call fcn.0040486d
pop ecx
mov byte [esp + 0x250], 0x17
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.00406435
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x15
push edi
push ebx
lea esi, [esp + 0x1bc]
call fcn.00409bbf
cmp byte [esp + 0x12], 0
je 0x4061a7
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x13
push edi
push ebx
lea esi, [esp + 0x22c]
call fcn.00409bbf
mov byte [esp + 0x250], 0x12
push edi
push ebx
lea esi, [esp + 0x210]
call fcn.00409bbf
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.00405144
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 0x405b9c
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 0x405a7b
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.0057340c
mov esp, ebp
pop ebp
ret