Function at 0x407170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9371
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d4
call fcn.00598dc0
mov eax, dword [0x6d26f8]
xor eax, ebp
mov dword [ebp - 0x18], 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, dword [ebp + 8]
mov dword [ebp - 0x2074], eax
mov byte [ebp - 0x2055], 0
push 0x1000
lea ecx, [ebp - 0x201c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x1000
ja 0x40764e
push str.Tasks
push 0x1000
lea edx, [ebp - 0x201c]
push edx
call fcn.0059483d
add esp, 0xc
test eax, eax
jne 0x40764e
lea eax, [ebp - 0x2068]
push eax
push 0x5efa5c
push 1
xor ebx, ebx
push ebx
push 0x5efa4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x407646
mov ecx, dword [ebp - 0x2068]
push ecx
lea esi, [ebp - 0x209c]
call fcn.004139e0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2068]
mov edx, dword [eax]
lea ecx, [ebp - 0x2070]
push ecx
push eax
mov edx, dword [edx + 0x14]
call edx
cmp eax, ebx
jl 0x407626
mov eax, dword [ebp - 0x2070]
push eax
lea esi, [ebp - 0x20a8]
call fcn.00413a50
mov byte [ebp - 4], 1
mov dword [ebp - 0x205c], ebx
jmp 0x407270
mov eax, dword [ebp - 0x2070]
mov ecx, dword [eax]
lea edx, [ebp - 0x205c]
push edx
lea edx, [ebp - 0x2060]
push edx
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x407609
cmp dword [ebp - 0x205c], ebx
je 0x407609
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
mov ecx, dword [ebp - 0x2060]
push ecx
lea esi, [ebp - 0x2094]
call fcn.00413ac0
mov byte [ebp - 4], 2
nop
mov eax, dword [ebp - 0x205c]
cmp eax, ebx
je 0x4075e7
dec eax
mov dword [ebp - 0x205c], eax
mov ecx, dword [ebp - 0x2068]
mov edx, dword [ecx]
lea esi, [ebp - 0x2064]
push esi
push 0x5efa6c
mov esi, dword [ebp - 0x2060]
mov eax, dword [esi + eax*4]
push eax
push ecx
mov ecx, dword [edx + 0x18]
call ecx
cmp eax, ebx
jl 0x4072c0
mov edx, dword [ebp - 0x2064]
push edx
lea esi, [ebp - 0x20a4]
call fcn.00413b30
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push edi
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
mov edx, dword [ecx + eax*4]
push edx
lea esi, [ebp - 0x2098]
call fcn.00413ba0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x206c]
push edx
push eax
mov eax, dword [ecx + 0x84]
call eax
cmp eax, ebx
jl 0x407598
push edi
mov ecx, dword [ebp - 0x206c]
push ecx
lea esi, [ebp - 0x2090]
call fcn.00413ba0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2064]
mov edx, dword [eax]
lea ecx, [ebp - 0x2078]
push ecx
push eax
mov edx, dword [edx + 0x94]
call edx
cmp eax, ebx
jl 0x407589
push edi
mov eax, dword [ebp - 0x2078]
push eax
lea esi, [ebp - 0x208c]
call fcn.00413ba0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x207c]
push edx
push eax
mov eax, dword [ecx + 0x8c]
call eax
cmp eax, ebx
jl 0x40757a
push edi
mov ecx, dword [ebp - 0x207c]
push ecx
lea esi, [ebp - 0x20a0]
call fcn.00413ba0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2088]
push edx
call fcn.00406ff0
mov byte [ebp - 4], 9
mov dword [ebp - 0x2088], ebx
lea edx, [ebp - 0x201c]
lea edi, [ebp - 0x2084]
call fcn.0040b9c0
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
mov edx, dword [ecx + eax*4]
lea edi, [ebp - 0x2080]
call fcn.0040b9c0
mov eax, dword [ebp - 0x206c]
lea ecx, [ebp - 0x2038]
call fcn.0040b2d0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2038]
push edx
mov eax, 0x694264
call fcn.0040b370
lea eax, [ebp - 0x2038]
push eax
mov eax, dword [ebp - 0x207c]
call fcn.0040b370
mov eax, dword [ebp - 0x2078]
lea ecx, [ebp - 0x2054]
call fcn.0040b2d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2054]
push ecx
mov eax, 0x692fe8
call fcn.0040b370
push ebx
lea edx, [ebp - 0x2038]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2054]
call fcn.0040d290
cmp dword [ebp - 0x203c], 8
mov eax, dword [ebp - 0x2050]
jae 0x4074a6
lea eax, [ebp - 0x2050]
push eax
lea edi, [ebp - 0x20c4]
call fcn.00406480
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2074]
push ecx
push eax
xor edx, edx
lea ecx, [ebp - 0x2088]
call fcn.00408650
add esp, 0xc
test al, al
sete bl
mov byte [ebp - 4], 0xb
mov esi, edi
call fcn.00440d90
test bl, bl
je 0x407537
cmp dword [ebp - 0x2020], 8
mov eax, dword [ebp - 0x2034]
jae 0x4074f7
lea eax, [ebp - 0x2034]
push eax
lea edi, [ebp - 0x20e0]
call fcn.00406480
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x2074]
push edx
push eax
xor edx, edx
lea ecx, [ebp - 0x2088]
call fcn.00408650
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 0xb
mov esi, edi
call fcn.00440d90
test bl, bl
je 0x407537
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x2054]
call fcn.00440d90
mov byte [ebp - 4], 9
lea esi, [ebp - 0x2038]
call fcn.00440d90
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.0041b9d0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x20a0]
call fcn.00406380
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 6
lea esi, [ebp - 0x208c]
call fcn.00406380
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2090]
call fcn.00406380
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2098]
call fcn.00406380
mov dword [ebp - 4], 3
jmp 0x4075c3
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x20a4]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
jmp 0x4072c0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2094]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
jmp 0x407270
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x20a8]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x209c]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x2055]
jmp 0x407650
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 - 0x18]
xor ecx, ebp
call fcn.0059393a
mov esp, ebp
pop ebp
ret