Function at 0x40a3eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [edi + 0x90]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40a414
inc dword [eax + 4]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00409c36
lea ecx, [ebp - 0x18]
call fcn.0040917d
mov esi, eax
dec esi
cmp dword [ebp - 0x18], 0
jne 0x40a438
lea eax, [ebp - 0x18]
jmp 0x40a447
lea ecx, [ebp - 0x18]
call fcn.00408ccd
mov eax, dword [ebp - 0x18]
lea eax, [esi + eax + 0xd]
cmp byte [eax], 0x5c
je 0x40a459
push 0x42935c
lea ecx, [ebp - 0x18]
call fcn.0040ac91
push str.TARGET_DIR
lea ecx, [ebp - 0x28]
call fcn.0040168c
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x30]
push eax
call fcn.0040f10f
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], eax
call fcn.0040178c
lea eax, [ebp - 0x30]
push str.IIUninst.exe
push eax
lea ecx, [edi + 0x1c]
call fcn.00409100
lea ecx, [ebp - 0x30]
call fcn.0040ad94
xor esi, esi
mov dword [ebp - 0x34], esi
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x40aacc
mov eax, dword [edi + 0x88]
push 0x18
sub eax, ecx
pop ecx
cdq
idiv ecx
cmp esi, eax
jae 0x40aacc
mov ecx, dword [edi + 0x84]
lea eax, [esi + esi*2]
lea edi, [ecx + eax*8]
mov eax, dword [edi + 4]
test eax, eax
lea esi, [edi + 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], eax
je 0x40a4de
inc dword [eax + 4]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.00409c36
lea ecx, [ebp - 0x10]
call fcn.0040ad94
and byte [ebp - 0x1d], 0
push str.http:__
lea ecx, [ebp - 0x44]
call fcn.0040168c
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0040ad4d
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.0040178c
test bl, bl
je 0x40a528
mov byte [ebp - 0x1d], 1
jmp 0x40a5b8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xe0]
test eax, eax
jne 0x40a539
xor esi, esi
jmp 0x40a544
mov esi, dword [ecx + 0xe4]
sub esi, eax
sar esi, 4
mov eax, esi
dec esi
test eax, eax
je 0x40a573
mov edi, esi
shl edi, 4
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov eax, dword [eax + 0xe0]
lea ecx, [eax + edi]
call fcn.0040acf1
test al, al
jne 0x40a587
mov eax, esi
dec esi
sub edi, 0x10
test eax, eax
jne 0x40a550
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040acf1
test al, al
je 0x40aa7a
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00409069
mov ecx, dword [eax]
test ecx, ecx
je 0x40a5a0
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0040178c
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], esi
call fcn.0040178c
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a5c6
inc dword [eax + 4]
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a5d3
inc dword [eax + 4]
lea ecx, [ebp - 8]
call fcn.0040917d
test eax, eax
je 0x40a69c
cmp dword [ebp - 8], ebx
jne 0x40a5ed
lea eax, [ebp - 8]
jmp 0x40a5fb
lea ecx, [ebp - 8]
call fcn.00408ccd
mov eax, dword [ebp - 8]
add eax, 0xd
cmp byte [eax], 0x23
jne 0x40a69c
cmp dword [ebp - 8], ebx
jne 0x40a60e
lea eax, [ebp - 8]
jmp 0x40a61c
lea ecx, [ebp - 8]
call fcn.00408ccd
mov eax, dword [ebp - 8]
add eax, 0xe
lea ecx, [ebp - 0x3c]
push ecx
push 0x42956c
push eax
call fcn.00415124
add esp, 0xc
test eax, eax
je 0x40aaa0
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x3c]
lea esi, [eax + 0xd4]
mov ecx, esi
call fcn.00420040
push dword [ebp - 0x3c]
mov ecx, esi
test al, al
jne 0x40a66f
call fcn.0041ff60
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40a660
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 8]
call fcn.0040178c
mov dword [ebp - 8], esi
jmp 0x40a69c
call fcn.0041ff60
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.0040ae7a
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40a687
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp - 0x54]
mov dword [ebp - 8], esi
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040917d
test eax, eax
je 0x40a765
cmp dword [ebp - 4], ebx
jne 0x40a6b6
lea eax, [ebp - 4]
jmp 0x40a6c4
lea ecx, [ebp - 4]
call fcn.00408ccd
mov eax, dword [ebp - 4]
add eax, 0xd
cmp byte [eax], 0x23
jne 0x40a765
cmp dword [ebp - 4], ebx
jne 0x40a6d7
lea eax, [ebp - 4]
jmp 0x40a6e5
lea ecx, [ebp - 4]
call fcn.00408ccd
mov eax, dword [ebp - 4]
add eax, 0xe
lea ecx, [ebp - 0x40]
push ecx
push 0x42956c
push eax
call fcn.00415124
add esp, 0xc
test eax, eax
je 0x40aaa0
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x40]
lea esi, [eax + 0xd4]
mov ecx, esi
call fcn.00420040
push dword [ebp - 0x40]
mov ecx, esi
test al, al
jne 0x40a738
call fcn.0041ff60
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40a729
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.0040178c
mov dword [ebp - 4], esi
jmp 0x40a765
call fcn.0041ff60
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.0040ae7a
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40a750
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.0040178c
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], esi
call fcn.0040178c
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x40a772
inc dword [eax + 4]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00409c36
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00409c36
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.00409c36
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40a7ac
inc dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.0040917d
test eax, eax
je 0x40a7e6
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409069
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40a7d1
inc dword [ecx + 4]
mov esi, dword [eax]
lea ecx, [ebp - 0x24]
call fcn.0040178c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], esi
call fcn.0040178c
cmp byte [ebp - 0x1d], 0
mov byte [ebp - 9], 1
jne 0x40a8ad
lea ecx, [ebp - 0x24]
call fcn.0040917d
test eax, eax
je 0x40a814
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40a80f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x40a817
add eax, 0xd
jmp 0x40a80a
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x2c]
call fcn.0040917d
test eax, eax
je 0x40a834
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40a82f
lea ebx, [ebp - 0x2c]
jmp 0x40a836
lea ebx, [eax + 0xd]
jmp 0x40a836
xor ebx, ebx
mov eax, dword [ebp - 4]
lea esi, [ebp - 4]
test eax, eax
je 0x40a843
lea esi, [eax + 0xd]
lea eax, [ebp - 0x6c]
push str..lnk
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409069
mov ecx, eax
call fcn.00409100
mov ecx, dword [eax]
test ecx, ecx
jne 0x40a86d
mov ecx, eax
jmp 0x40a870
add ecx, 0xd
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40a87c
lea eax, [ebp - 0x10]
jmp 0x40a87f
add eax, 0xd
push 2
push dword [edi + 0x14]
push dword [ebp - 0x28]
push ebx
push esi
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0040aaeb
lea ecx, [ebp - 0x6c]
mov byte [ebp - 9], al
call fcn.0040178c
lea ecx, [ebp - 0x50]
call fcn.0040178c
xor ebx, ebx
jmp 0x40a9e9
push 1
lea eax, [ebp - 0x170]
push 2
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x40a9f3
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040168c
lea ecx, [ebp - 0x1c]
call fcn.0040917d
test eax, eax
je 0x40a918
lea ecx, [ebp - 0x1c]
call fcn.0040917d
mov esi, eax
dec esi
cmp dword [ebp - 0x1c], ebx
jne 0x40a8f7
lea eax, [ebp - 0x1c]
jmp 0x40a906
lea ecx, [ebp - 0x1c]
call fcn.00408ccd
mov eax, dword [ebp - 0x1c]
lea eax, [esi + eax + 0xd]
cmp byte [eax], 0x5c
je 0x40a918
push 0x42935c
lea ecx, [ebp - 0x1c]
call fcn.0040ac91
lea eax, [ebp - 0x58]
push str..url
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409069
mov ecx, eax
call fcn.00409100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408f7d
lea ecx, [ebp - 0x58]
call fcn.0040178c
lea ecx, [ebp - 0x60]
call fcn.0040178c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x40a95d
lea eax, [ebp - 0x10]
jmp 0x40a960
add eax, 0xd
push eax
lea eax, [ebp - 0x38]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00407807
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, ebx
jne 0x40a97e
lea eax, [ebp - 0x1c]
jmp 0x40a981
add eax, 0xd
push 1
push eax
call fcn.00413c78
mov esi, eax
cmp esi, ebx
je 0x40a9d9
mov eax, dword [ebp - 0x38]
lea edi, [ebp - 0x38]
cmp eax, ebx
je 0x40a99c
lea edi, [eax + 0xd]
mov ebx, dword [esi]
lea ecx, [ebp - 0x38]
call fcn.0040917d
push eax
push edi
mov ecx, esi
call dword [ebx + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40a9c0
lea eax, [ebp - 0x1c]
jmp 0x40a9c3
add eax, 0xd
push eax
mov eax, dword [ebp - 0x14]
push 0x1100
lea ecx, [eax + 0x104]
call fcn.0041024d
xor ebx, ebx
lea ecx, [ebp - 0x38]
call fcn.0040178c
lea ecx, [ebp - 0x1c]
call fcn.0040178c
cmp byte [ebp - 9], 0
je 0x40aa90
cmp dword [ebp - 0x34], ebx
jne 0x40aa54
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xf0], 0
je 0x40aa54
mov eax, dword [ebp - 4]
lea esi, [ebp - 4]
cmp eax, ebx
je 0x40aa11
lea esi, [eax + 0xd]
lea eax, [ebp - 0x68]
push str..lnk
push eax
lea ecx, [ebp - 8]
call fcn.00409100
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40aa2b
lea eax, [ecx + 0xd]
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jne 0x40aa37
lea ecx, [ebp - 0x10]
jmp 0x40aa3a
add ecx, 0xd
push ebx
push ebx
push ebx
push ebx
push esi
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040aaeb
lea ecx, [ebp - 0x68]
mov byte [ebp - 9], al
call fcn.0040178c
cmp byte [ebp - 9], 0
je 0x40aa90
lea ecx, [ebp - 0x24]
call fcn.0040178c
lea ecx, [ebp - 0x2c]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp - 0x10]
call fcn.0040178c
inc dword [ebp - 0x34]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
jmp 0x40a49b
lea ecx, [ebp - 0x24]
call fcn.0040178c
lea ecx, [ebp - 0x2c]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp - 0x10]
call fcn.0040178c
lea ecx, [ebp - 0x30]
call fcn.0040178c
lea ecx, [ebp - 0x18]
call fcn.0040178c
xor al, al
jmp 0x40aae4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x30]
call fcn.0040178c
lea ecx, [ebp - 0x18]
call fcn.0040178c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4