Function at 0x4075b0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.005027c0
push 0xffffffffffffffff
push 0x57f98d
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x6531f0]
xor eax, ebp
mov dword [ebp + 0x2038], 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 + 0x2044]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x11], 0
push 0x1000
lea ecx, [ebp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x1000
ja 0x40799f
push str.Tasks
push 0x1000
lea edx, [ebp + 0x38]
push edx
call fcn.004fe888
add esp, 0xc
test eax, eax
jne 0x40799f
lea eax, [ebp - 0x24]
push eax
push 0x58b8cc
push 1
xor ebx, ebx
push ebx
push 0x58b8bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40799a
mov ecx, dword [ebp - 0x24]
push ecx
lea esi, [ebp - 0x58]
call fcn.00413060
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov edx, dword [edx + 0x14]
call edx
cmp eax, ebx
jl 0x40797d
mov eax, dword [ebp - 0x2c]
push eax
lea esi, [ebp - 0x64]
call fcn.004130d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x1c]
push edx
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x407963
cmp dword [ebp - 0x18], ebx
je 0x407963
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x50]
call fcn.00413140
mov byte [ebp - 4], 2
nop
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x407944
dec eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
lea esi, [ebp - 0x20]
push esi
push 0x58b8dc
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + eax*4]
push eax
push ecx
mov ecx, dword [edx + 0x18]
call ecx
cmp eax, ebx
jl 0x4076d0
mov edx, dword [ebp - 0x20]
push edx
lea esi, [ebp - 0x60]
call fcn.004131b0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
push edx
lea esi, [ebp - 0x54]
call fcn.00413220
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ecx + 0x84]
call eax
cmp eax, ebx
jl 0x4078fb
push edi
mov ecx, dword [ebp - 0x28]
push ecx
lea esi, [ebp - 0x4c]
call fcn.00413220
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov edx, dword [edx + 0x94]
call edx
cmp eax, ebx
jl 0x4078ef
push edi
mov eax, dword [ebp - 0x34]
push eax
lea esi, [ebp - 0x48]
call fcn.00413220
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
mov eax, dword [ecx + 0x8c]
call eax
cmp eax, ebx
jl 0x4078e3
push edi
mov ecx, dword [ebp - 0x38]
push ecx
lea esi, [ebp - 0x5c]
call fcn.00413220
mov byte [ebp - 4], 8
lea edx, [ebp - 0x44]
push edx
call fcn.004074a0
mov byte [ebp - 4], 9
mov dword [ebp - 0x44], ebx
lea edx, [ebp + 0x38]
lea edi, [ebp - 0x40]
call fcn.004027b0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
lea edi, [ebp - 0x3c]
call fcn.004027b0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1c]
call fcn.0040c640
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0x1c]
push edx
mov eax, 0x6302cc
call fcn.0040c6e0
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0040c6e0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp]
call fcn.0040c640
mov byte [ebp - 4], 0xb
lea ecx, [ebp]
push ecx
mov eax, 0x63132c
call fcn.0040c6e0
push ebx
lea edx, [ebp + 0x1c]
push edx
or eax, 0xffffffff
lea esi, [ebp]
call fcn.0040e1e0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x407838
lea eax, [ebp + 4]
push eax
lea edi, [ebp - 0x80]
call fcn.00406960
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x44]
mov edx, eax
call fcn.004089b0
add esp, 8
test al, al
sete bl
mov byte [ebp - 4], 0xb
mov esi, edi
call fcn.0042f9c0
test bl, bl
je 0x4078ac
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x407876
lea eax, [ebp + 0x20]
push eax
lea edi, [ebp - 0x9c]
call fcn.00406960
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x44]
mov edx, eax
call fcn.004089b0
add esp, 8
mov bl, al
mov byte [ebp - 4], 0xb
mov esi, edi
call fcn.0042f9c0
test bl, bl
je 0x4078ac
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0xa
lea esi, [ebp]
call fcn.0042f9c0
mov byte [ebp - 4], 9
lea esi, [ebp + 0x1c]
call fcn.0042f9c0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
push eax
call fcn.00407500
mov byte [ebp - 4], 7
lea esi, [ebp - 0x5c]
call fcn.00406860
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 6
lea esi, [ebp - 0x48]
call fcn.00406860
mov byte [ebp - 4], 5
lea esi, [ebp - 0x4c]
call fcn.00406860
mov byte [ebp - 4], 4
lea esi, [ebp - 0x54]
call fcn.00406860
mov dword [ebp - 4], 3
jmp 0x407923
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x60]
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 0x4076d0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x50]
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 0x407692
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x64]
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 - 0x58]
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 - 0x11]
jmp 0x4079a1
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 + 0x2038]
xor ecx, ebp
call fcn.004fdb4a
add ebp, 0x203c
mov esp, ebp
pop ebp
ret