Function at 0x458a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6448
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d0
call fcn.004aa970
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x2090], eax
mov dword [ebp - 0x20d8], eax
xor bl, bl
mov byte [ebp - 0x207a], bl
push 0x1000
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x1000
ja 0x459012
push str.Tasks
push 0x1000
lea eax, [ebp - 0x2018]
push eax
call fcn.004b3320
add esp, 0xc
test eax, eax
jne 0x459012
sub esp, 8
lea ecx, [ebp - 0x20bc]
call fcn.0045fe80
lea ecx, [ebp - 0x2084]
push ecx
push 0x4d5550
push 1
push 0
push 0x4d5540
mov eax, dword [eax + 8]
call eax
test eax, eax
js 0x45900e
mov edi, dword [ebp - 0x2084]
push 0xc
call fcn.004a9ec5
add esp, 4
mov esi, eax
mov dword [ebp - 0x20b0], esi
mov dword [ebp - 0x2098], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 1
mov dword [esi], vtable.StartupAreas::FreeMemberFuncPtr_unsigned_short_int____cdecl_IUnknown::__unsigned_long_int__void___struct_ITaskScheduler__.0
mov dword [esi + 4], 0x46478d
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20d0], esi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2084]
mov ecx, dword [eax]
lea edx, [ebp - 0x209c]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x458ff8
mov esi, dword [ebp - 0x209c]
push 0xc
call fcn.004a9ec5
add esp, 4
mov edi, eax
mov dword [ebp - 0x2098], edi
mov byte [ebp - 4], 3
mov dword [edi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 4
mov dword [edi], vtable.StartupAreas::FreeMemberFuncPtr_unsigned_short_int____cdecl_IUnknown::__unsigned_long_int__void___struct_IEnumWorkItems__.0
mov dword [edi + 4], 0x46478d
mov dword [edi + 8], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20d4], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x2080], 0
nop word [eax + eax]
mov eax, dword [ebp - 0x209c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2080]
push edx
lea edx, [ebp - 0x208c]
push edx
push 5
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x458fdf
cmp dword [ebp - 0x2080], 0
je 0x458fdf
mov eax, dword [ebp - 0x208c]
mov dword [ebp - 0x2094], eax
push 0xc
call fcn.004a9ec5
add esp, 4
mov esi, eax
mov dword [ebp - 0x20dc], esi
mov byte [ebp - 4], 6
mov dword [esi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 7
mov dword [esi], vtable.StartupAreas::FreeProcPtr_void____stdcall___void____unsigned_short_int___.0
mov eax, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2094]
mov dword [esi + 8], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x2098], esi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2080]
test eax, eax
je 0x458fc7
dec eax
mov dword [ebp - 0x2080], eax
mov ecx, dword [ebp - 0x2084]
mov edx, dword [ecx]
lea eax, [ebp - 0x2088]
push eax
push 0x4d5560
mov eax, dword [ebp - 0x208c]
mov ecx, dword [ebp - 0x2080]
push dword [eax + ecx*4]
mov ecx, dword [ebp - 0x2084]
push ecx
call dword [edx + 0x18]
test eax, eax
js 0x458c12
mov eax, dword [ebp - 0x2088]
mov dword [ebp - 0x2094], eax
push 0xc
call fcn.004a9ec5
add esp, 4
mov dword [ebp - 0x20ac], eax
mov byte [ebp - 4], 9
mov dword [eax], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 0xa
mov dword [eax], vtable.StartupAreas::FreeMemberFuncPtr_unsigned_short_int____cdecl_IUnknown::__unsigned_long_int__void___struct_ITask__.0
mov dword [eax + 4], 0x46478d
mov ecx, dword [ebp - 0x2094]
mov dword [eax + 8], ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x20e0], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
push dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x2080]
mov eax, dword [ebp - 0x208c]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x20cc]
call fcn.00461590
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2088]
mov ecx, dword [eax]
lea edx, [ebp - 0x20a0]
push edx
push eax
call dword [ecx + 0x84]
test eax, eax
js 0x458f58
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a0]
lea ecx, [ebp - 0x20c8]
call fcn.00461590
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x2088]
mov ecx, dword [eax]
lea edx, [ebp - 0x20a8]
push edx
push eax
call dword [ecx + 0x94]
test eax, eax
js 0x458f49
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a8]
lea ecx, [ebp - 0x20c4]
call fcn.00461590
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x2088]
mov ecx, dword [eax]
lea edx, [ebp - 0x20a4]
push edx
push eax
call dword [ecx + 0x8c]
test eax, eax
js 0x458f3a
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a4]
lea ecx, [ebp - 0x20c0]
call fcn.00461590
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x20bc]
call fcn.00458730
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x20bc], 0
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x20b8]
call fcn.00460890
mov ecx, dword [ebp - 0x2080]
mov eax, dword [ebp - 0x208c]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x20b4]
call fcn.00460890
push dword [ebp - 0x20a0]
lea ecx, [ebp - 0x2030]
call fcn.00460390
mov byte [ebp - 4], 0x12
push 0x4e9ec4
lea ecx, [ebp - 0x2030]
call fcn.00460290
push dword [ebp - 0x20a4]
lea ecx, [ebp - 0x2030]
call fcn.00460290
push dword [ebp - 0x20a8]
lea ecx, [ebp - 0x2048]
call fcn.00460390
mov byte [ebp - 4], 0x13
push 0x4e8858
lea ecx, [ebp - 0x2048]
call fcn.00460290
lea eax, [ebp - 0x2030]
cmp dword [ebp - 0x201c], 7
cmova eax, dword [ebp - 0x2030]
push dword [ebp - 0x2020]
push eax
lea ecx, [ebp - 0x2048]
call fcn.00460d90
lea edx, [ebp - 0x2048]
cmp dword [ebp - 0x2034], 7
cmova edx, dword [ebp - 0x2048]
lea ecx, [ebp - 0x2060]
call fcn.00457690
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x20bc]
push ecx
mov edx, dword [ebp - 0x2090]
mov ecx, eax
call fcn.0045a5d0
add esp, 4
mov byte [ebp - 0x2079], al
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2060]
call fcn.00460bf0
cmp byte [ebp - 0x2079], 0
jne 0x458efe
lea edx, [ebp - 0x2030]
cmp dword [ebp - 0x201c], 7
cmova edx, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2078]
call fcn.00457690
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x20bc]
push ecx
mov edx, dword [ebp - 0x2090]
mov ecx, eax
call fcn.0045a5d0
add esp, 4
mov byte [ebp - 0x2079], al
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2078]
call fcn.00460bf0
movzx ebx, bl
cmp byte [ebp - 0x2079], 0
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 0x207a], bl
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2048]
call fcn.00460bf0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2030]
call fcn.00460bf0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x20bc]
call fcn.004587c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x20c0]
call fcn.00457640
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20c4]
call fcn.00457640
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20c8]
call fcn.00457640
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20cc]
call fcn.00457640
mov dword [ebp - 4], 0xb
jmp 0x458fa7
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20ac]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x20ac]
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp 0x458c12
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x458b90
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x20b0]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov al, bl
jmp 0x459014
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret