Function at 0x40523d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7b66
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d4
call fcn.00578bc0
mov eax, dword [0x6b06f8]
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 0x4056ee
push str.Tasks
push esi
lea eax, [ebp - 0x201c]
push eax
call fcn.0057463d
add esp, 0xc
test eax, eax
jne 0x4056ee
lea eax, [ebp - 0x2068]
push eax
push 0x5cda5c
push 1
xor ebx, ebx
push ebx
push 0x5cda4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4056e6
push dword [ebp - 0x2068]
lea esi, [ebp - 0x209c]
call fcn.0040defd
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 0x4056cd
push dword [ebp - 0x2070]
lea esi, [ebp - 0x20a8]
call fcn.0040df51
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 0x4056b4
cmp dword [ebp - 0x205c], ebx
je 0x4056b4
push edi
push dword [ebp - 0x2060]
lea esi, [ebp - 0x2094]
call fcn.0040dfa5
mov byte [ebp - 4], 2
cmp dword [ebp - 0x205c], ebx
je 0x405696
dec dword [ebp - 0x205c]
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2064]
push edx
push 0x5cda6c
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 0x405375
push dword [ebp - 0x2064]
lea esi, [ebp - 0x20a4]
call fcn.0040dff8
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.0040e04c
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 0x40564b
push edi
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2090]
call fcn.0040e04c
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 0x40563c
push edi
push dword [ebp - 0x2078]
lea esi, [ebp - 0x208c]
call fcn.0040e04c
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 0x40562d
push edi
push dword [ebp - 0x207c]
lea esi, [ebp - 0x20a0]
call fcn.0040e04c
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.0040512b
mov byte [ebp - 4], 9
mov dword [ebp - 0x2088], ebx
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2084]
push eax
call fcn.00408606
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea eax, [ebp - 0x2080]
push eax
call fcn.00408606
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2038]
call fcn.004081bb
mov byte [ebp - 4], 0xa
push 0x672264
mov eax, esi
push eax
call fcn.00408208
push dword [ebp - 0x207c]
mov eax, esi
push eax
call fcn.00408208
push dword [ebp - 0x2078]
lea esi, [ebp - 0x2054]
call fcn.004081bb
mov byte [ebp - 4], 0xb
push 0x670fe8
mov eax, esi
push eax
call fcn.00408208
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2038]
mov ecx, esi
call fcn.004097f9
cmp dword [ebp - 0x203c], 8
mov ecx, dword [ebp - 0x2050]
jae 0x405541
lea ecx, [ebp - 0x2050]
lea eax, [ebp - 0x20c4]
push eax
call fcn.00404887
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.0040644d
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.00409c0f
test bl, bl
je 0x4055e6
cmp dword [ebp - 0x2020], 8
mov ecx, dword [ebp - 0x2034]
jae 0x40559d
lea ecx, [ebp - 0x2034]
lea eax, [ebp - 0x20e0]
push eax
call fcn.00404887
mov byte [ebp - 4], 0xd
push 0
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.0040644d
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20e0]
call fcn.00409c0f
test bl, bl
je 0x4055e6
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 0xa
push 0
push 1
lea esi, [ebp - 0x2054]
call fcn.00409c0f
mov byte [ebp - 4], 9
push 0
push 1
lea esi, [ebp - 0x2038]
call fcn.00409c0f
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.0040515e
mov byte [ebp - 4], 7
lea esi, [ebp - 0x20a0]
call fcn.004047a2
xor ebx, ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x208c]
call fcn.004047a2
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2090]
call fcn.004047a2
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2098]
call fcn.004047a2
mov dword [ebp - 4], 3
jmp 0x405678
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 0x405375
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 0x40532f
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 0x4056f0
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.0057372c
leave
ret