Function at 0x4051bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5d31
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d4
call fcn.00586dc0
mov eax, dword [0x6c56f8]
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
mov esi, 0x1000
push esi
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
ja 0x405670
push str.Tasks
push esi
lea eax, [ebp - 0x201c]
push eax
call fcn.0058216d
add esp, 0xc
test eax, eax
jne 0x405670
lea eax, [ebp - 0x2068]
push eax
push 0x5ddb5c
push 1
xor ebx, ebx
push ebx
push 0x5ddb4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x405668
push dword [ebp - 0x2068]
lea esi, [ebp - 0x209c]
call fcn.0040dd25
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2070]
push edx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x40564f
push dword [ebp - 0x2070]
lea esi, [ebp - 0x20a8]
call fcn.0040dd79
mov byte [ebp - 4], 1
mov dword [ebp - 0x205c], ebx
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
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
call dword [ecx + 0xc]
test eax, eax
jl 0x405636
cmp dword [ebp - 0x205c], ebx
je 0x405636
push edi
push dword [ebp - 0x2060]
lea esi, [ebp - 0x2094]
call fcn.0040ddcd
mov byte [ebp - 4], 2
cmp dword [ebp - 0x205c], ebx
je 0x405618
dec dword [ebp - 0x205c]
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2064]
push edx
push 0x5ddb6c
mov edx, dword [ebp - 0x2060]
mov esi, dword [ebp - 0x205c]
push dword [edx + esi*4]
push eax
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x4052f7
push dword [ebp - 0x2064]
lea esi, [ebp - 0x20a4]
call fcn.0040de20
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push edi
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea esi, [ebp - 0x2098]
call fcn.0040de74
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x206c]
push edx
push eax
call dword [ecx + 0x84]
cmp eax, ebx
jl 0x4055cd
push edi
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2090]
call fcn.0040de74
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x2078]
push edx
push eax
call dword [ecx + 0x94]
cmp eax, ebx
jl 0x4055be
push edi
push dword [ebp - 0x2078]
lea esi, [ebp - 0x208c]
call fcn.0040de74
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x207c]
push edx
push eax
call dword [ecx + 0x8c]
cmp eax, ebx
jl 0x4055af
push edi
push dword [ebp - 0x207c]
lea esi, [ebp - 0x20a0]
call fcn.0040de74
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.004050ad
mov byte [ebp - 4], 9
mov dword [ebp - 0x2088], ebx
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2084]
push eax
call fcn.0040865a
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea eax, [ebp - 0x2080]
push eax
call fcn.0040865a
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2038]
call fcn.0040820f
mov byte [ebp - 4], 0xa
push 0x682324
mov eax, esi
push eax
call fcn.0040825c
push dword [ebp - 0x207c]
mov eax, esi
push eax
call fcn.0040825c
push dword [ebp - 0x2078]
lea esi, [ebp - 0x2054]
call fcn.0040820f
mov byte [ebp - 4], 0xb
push 0x6810d0
mov eax, esi
push eax
call fcn.0040825c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2038]
mov ecx, esi
call fcn.00409990
cmp dword [ebp - 0x203c], 8
mov ecx, dword [ebp - 0x2050]
jae 0x4054c3
lea ecx, [ebp - 0x2050]
lea eax, [ebp - 0x20c4]
push eax
call fcn.00404809
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.004063cf
add esp, 0x10
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20c4]
call fcn.00409da6
test bl, bl
je 0x405568
cmp dword [ebp - 0x2020], 8
mov ecx, dword [ebp - 0x2034]
jae 0x40551f
lea ecx, [ebp - 0x2034]
lea eax, [ebp - 0x20e0]
push eax
call fcn.00404809
mov byte [ebp - 4], 0xd
push 0
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.004063cf
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20e0]
call fcn.00409da6
test bl, bl
je 0x405568
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 0xa
push 0
push 1
lea esi, [ebp - 0x2054]
call fcn.00409da6
mov byte [ebp - 4], 9
push 0
push 1
lea esi, [ebp - 0x2038]
call fcn.00409da6
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.004050e0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x20a0]
call fcn.00404724
xor ebx, ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x208c]
call fcn.00404724
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2090]
call fcn.00404724
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2098]
call fcn.00404724
mov dword [ebp - 4], 3
jmp 0x4055fa
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x20a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x4052f7
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2094]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x4052b1
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x20a8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x209c]
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, byte [ebp - 0x2055]
jmp 0x405672
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.00581268
leave
ret