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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7aa7
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
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 0x65b8e0
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x65bad0
mov byte [esp + 0x27], 0
mov dword [esp + 0x60], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406380
mov esi, dword [esp + 0x4c]
push 0xc
call fcn.005737a7
pop ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x250], edi
cmp eax, edi
je 0x4057ce
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], 0x40f7e1
mov dword [eax + 8], esi
mov byte [esp + 0x250], 0
mov dword [esp + 0x1c], eax
jmp 0x4057d2
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 0x406366
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 0x406366
push dword [esp + 0x40]
lea esi, [esp + 0x30]
call fcn.0040e09f
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 0x40634c
push dword [esp + 0x54]
lea esi, [esp + 0x60]
call fcn.0040e0f3
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 0x406332
xor eax, eax
cmp dword [esp + 0x8c], edi
jle 0x405a30
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 0x405a1d
push dword [esp + 0x20]
lea esi, [esp + 0x78]
call fcn.0040e09f
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 0x405a03
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x68]
push dword [esp + 0x28]
call fcn.0040e147
mov byte [esp + 0x250], 6
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push eax
call fcn.00408561
mov byte [esp + 0x250], 7
lea eax, [esp + 0x14]
mov esi, 0x670fe8
push eax
mov ecx, esi
call fcn.00409d39
test eax, eax
je 0x4059ad
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00408624
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.00408624
lea esi, [esp + 0x14]
call fcn.004087dc
push eax
push dword [esp + 0x2c]
call fcn.0040570a
pop ecx
pop ecx
test al, al
je 0x4059d8
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 6
lea ecx, [esp + 0x14]
call fcn.004085a2
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 0x4058e6
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 0x406332
push dword [esp + 0x48]
lea esi, [esp + 0x68]
call fcn.0040e19a
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 0x406318
xor eax, eax
cmp dword [esp + 0x80], edi
jle 0x406318
jmp 0x405a95
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 0x406304
push dword [esp + 0x60]
lea esi, [esp + 0x3c]
call fcn.0040e1ee
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 0x4062ea
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x24]
push dword [esp + 0x5c]
call fcn.0040e147
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 0x4062d0
push dword [esp + 0x7c]
lea esi, [esp + 0x88]
call fcn.0040e242
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 0x4062b3
push dword [esp + 0x50]
lea esi, [esp + 0x78]
call fcn.0040e296
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 0x406299
xor eax, eax
cmp dword [esp + 0x78], edi
jle 0x406299
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 0x406288
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.0040e2ea
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 0x40626e
cmp dword [esp + 0x94], edi
je 0x405f14
cmp dword [esp + 0x94], 5
jne 0x40626e
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push 0x65ba60
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jl 0x40626e
push dword [esp + 0x18]
lea esi, [esp + 0x94]
call fcn.0040e392
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 0x405f00
cmp dword [esp + 0x30], edi
je 0x405f00
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xc8]
push dword [esp + 0x34]
call fcn.0040e147
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.0040512b
mov byte [esp + 0x250], 0x1a
push dword [esp + 0x70]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc0], 2
call fcn.00408606
push dword [esp + 0x58]
lea eax, [esp + 0xc4]
push eax
call fcn.00408606
push str.InprocServer32
lea esi, [esp + 0xd8]
call fcn.004081bb
mov byte [esp + 0x250], 0x1b
push dword [esp + 0x30]
lea esi, [esp + 0xf4]
call fcn.004081bb
mov byte [esp + 0x250], 0x1c
lea eax, [esp + 0xd4]
push eax
mov edx, esi
lea ecx, [esp + 0x19c]
call fcn.00406985
pop ecx
mov byte [esp + 0x250], 0x1d
cmp dword [eax + 0x18], 8
jb 0x405d3b
mov eax, dword [eax + 4]
jmp 0x405d3e
add eax, 4
lea ecx, [esp + 0x144]
push ecx
mov ecx, eax
call fcn.00404887
pop ecx
mov byte [esp + 0x250], 0x1e
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.0040644d
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.00409c0f
mov byte [esp + 0x250], 0x1c
push edi
push ebx
lea esi, [esp + 0x1a0]
call fcn.00409c0f
mov byte [esp + 0x250], 0x1b
push edi
push ebx
lea esi, [esp + 0xf8]
call fcn.00409c0f
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0xdc]
call fcn.00409c0f
cmp byte [esp + 0x12], 0
je 0x405ece
push str.InprocServer32
lea esi, [esp + 0x110]
call fcn.004081bb
mov byte [esp + 0x250], 0x1f
push dword [esp + 0x30]
lea esi, [esp + 0x12c]
call fcn.004081bb
mov byte [esp + 0x250], 0x20
lea eax, [esp + 0x10c]
push eax
mov edx, esi
lea ecx, [esp + 0x180]
call fcn.00406985
pop ecx
mov byte [esp + 0x250], 0x21
cmp dword [eax + 0x18], 8
jb 0x405e35
mov eax, dword [eax + 4]
jmp 0x405e38
add eax, 4
lea ecx, [esp + 0x160]
push ecx
mov ecx, eax
call fcn.00404887
pop ecx
mov byte [esp + 0x250], 0x22
push edi
lea ecx, [esp + 0xbc]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.0040644d
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x21
push edi
push ebx
lea esi, [esp + 0x168]
call fcn.00409c0f
mov byte [esp + 0x250], 0x20
push edi
push ebx
lea esi, [esp + 0x184]
call fcn.00409c0f
mov byte [esp + 0x250], 0x1f
push edi
push ebx
lea esi, [esp + 0x130]
call fcn.00409c0f
mov byte [esp + 0x250], 0x1a
push edi
push ebx
lea esi, [esp + 0x114]
call fcn.00409c0f
cmp byte [esp + 0x12], 0
je 0x405ece
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x19
lea eax, [esp + 0xb8]
push eax
call fcn.0040515e
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 0x406260
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 0x40626e
push dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040e33e
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 0x406254
cmp dword [esp + 0x68], edi
je 0x406254
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x8c]
push dword [esp + 0x6c]
call fcn.0040e147
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 0x406237
cmp dword [esp + 0x44], edi
je 0x406237
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x70]
push dword [esp + 0x48]
call fcn.0040e147
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 0x40621d
cmp dword [esp + 0x3c], edi
je 0x40621d
push dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0xcc]
push dword [esp + 0x40]
call fcn.0040e147
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.0040512b
mov byte [esp + 0x250], 0x12
push dword [esp + 0x70]
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb4], 2
call fcn.00408606
push dword [esp + 0x58]
lea eax, [esp + 0xb8]
push eax
call fcn.00408606
push dword [esp + 0x68]
lea esi, [esp + 0x20c]
call fcn.004081bb
mov byte [esp + 0x250], 0x13
cmp dword [esp + 0x3c], edi
je 0x4060b6
push 0x672264
lea esi, [esp + 0x1d4]
call fcn.004081bb
mov byte [esp + 0x250], 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x210]
call fcn.004097f9
mov byte [esp + 0x250], 0x13
push edi
push ebx
call fcn.00409c0f
push dword [esp + 0x3c]
lea eax, [esp + 0x20c]
push eax
call fcn.00408208
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x4060c3
mov eax, 0x670fd0
push eax
lea esi, [esp + 0x228]
call fcn.004081bb
mov byte [esp + 0x250], 0x15
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x210]
mov ecx, esi
call fcn.004097f9
cmp dword [esp + 0x23c], 8
mov ecx, dword [esp + 0x228]
jae 0x406101
lea ecx, [esp + 0x228]
lea eax, [esp + 0x1ec]
push eax
call fcn.00404887
pop ecx
mov byte [esp + 0x250], 0x16
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.0040644d
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.00409c0f
cmp byte [esp + 0x12], 0
je 0x4061bf
cmp dword [esp + 0x220], 8
mov ecx, dword [esp + 0x20c]
jae 0x40616d
lea ecx, [esp + 0x20c]
lea eax, [esp + 0x1b4]
push eax
call fcn.00404887
pop ecx
mov byte [esp + 0x250], 0x17
push edi
lea ecx, [esp + 0xb0]
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.0040644d
add esp, 0xc
mov byte [esp + 0x12], al
mov byte [esp + 0x250], 0x15
push edi
push ebx
lea esi, [esp + 0x1bc]
call fcn.00409c0f
cmp byte [esp + 0x12], 0
je 0x4061bf
mov byte [esp + 0x13], bl
mov byte [esp + 0x250], 0x13
push edi
push ebx
lea esi, [esp + 0x22c]
call fcn.00409c0f
mov byte [esp + 0x250], 0x12
push edi
push ebx
lea esi, [esp + 0x210]
call fcn.00409c0f
mov byte [esp + 0x250], 0x11
lea eax, [esp + 0xac]
push eax
call fcn.0040515e
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 0x405bb4
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 0x405a93
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.0057372c
mov esp, ebp
pop ebp
ret