Function at 0x458990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7058
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d0
call fcn.004aa810
mov eax, dword [0x502054]
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 0x458f95
push str.Tasks
push 0x1000
lea eax, [ebp - 0x2018]
push eax
call fcn.004b31d0
add esp, 0xc
test eax, eax
jne 0x458f95
sub esp, 8
lea ecx, [ebp - 0x20bc]
call fcn.0045fe20
lea ecx, [ebp - 0x2084]
push ecx
push 0x4d5530
push 1
push 0
push 0x4d5520
mov eax, dword [eax + 8]
call eax
test eax, eax
js 0x458f91
mov edi, dword [ebp - 0x2084]
push 0xc
call fcn.004a9d6b
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], 0x4646dd
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 0x458f7b
mov esi, dword [ebp - 0x209c]
push 0xc
call fcn.004a9d6b
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], 0x4646dd
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 0x458f62
cmp dword [ebp - 0x2080], 0
je 0x458f62
mov eax, dword [ebp - 0x208c]
mov dword [ebp - 0x2094], eax
push 0xc
call fcn.004a9d6b
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 0x458f4a
dec eax
mov dword [ebp - 0x2080], eax
mov ecx, dword [ebp - 0x2084]
mov edx, dword [ecx]
lea eax, [ebp - 0x2088]
push eax
push 0x4d5540
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 0x458b92
mov eax, dword [ebp - 0x2088]
mov dword [ebp - 0x2094], eax
push 0xc
call fcn.004a9d6b
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], 0x4646dd
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.00461530
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 0x458edb
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a0]
lea ecx, [ebp - 0x20c8]
call fcn.00461530
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 0x458ecc
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a8]
lea ecx, [ebp - 0x20c4]
call fcn.00461530
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 0x458ebd
push dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x20a4]
lea ecx, [ebp - 0x20c0]
call fcn.00461530
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x20bc]
call fcn.004586f0
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x20bc], 0
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x20b8]
call fcn.00460830
mov ecx, dword [ebp - 0x2080]
mov eax, dword [ebp - 0x208c]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x20b4]
call fcn.00460830
push dword [ebp - 0x20a0]
lea ecx, [ebp - 0x2030]
call fcn.00460330
mov byte [ebp - 4], 0x12
push 0x4ed874
lea ecx, [ebp - 0x2030]
call fcn.00460230
push dword [ebp - 0x20a4]
lea ecx, [ebp - 0x2030]
call fcn.00460230
push dword [ebp - 0x20a8]
lea ecx, [ebp - 0x2048]
call fcn.00460330
mov byte [ebp - 4], 0x13
push 0x4ec208
lea ecx, [ebp - 0x2048]
call fcn.00460230
lea eax, [ebp - 0x2030]
cmp dword [ebp - 0x201c], 8
cmovae eax, dword [ebp - 0x2030]
push dword [ebp - 0x2020]
push eax
lea ecx, [ebp - 0x2048]
call fcn.00460d30
lea edx, [ebp - 0x2048]
cmp dword [ebp - 0x2034], 8
cmovae edx, dword [ebp - 0x2048]
lea ecx, [ebp - 0x2060]
call fcn.00457650
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x20bc]
push ecx
mov edx, dword [ebp - 0x2090]
mov ecx, eax
call fcn.0045a540
add esp, 4
test al, al
sete byte [ebp - 0x2079]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2060]
call fcn.00460b90
cmp byte [ebp - 0x2079], 0
je 0x458e81
lea edx, [ebp - 0x2030]
cmp dword [ebp - 0x201c], 8
cmovae edx, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2078]
call fcn.00457650
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x20bc]
push ecx
mov edx, dword [ebp - 0x2090]
mov ecx, eax
call fcn.0045a540
add esp, 4
mov byte [ebp - 0x2079], al
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2078]
call fcn.00460b90
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.00460b90
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2030]
call fcn.00460b90
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x20bc]
call fcn.00458780
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x20c0]
call fcn.00457600
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20c4]
call fcn.00457600
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20c8]
call fcn.00457600
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20cc]
call fcn.00457600
mov dword [ebp - 4], 0xb
jmp 0x458f2a
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 0x458b92
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 0x458b10
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 0x458f97
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.004a9913
mov esp, ebp
pop ebp
ret