Function at 0x409640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x416f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x278]
push str.Windows_98
push esi
call fcn.0040f5c7
add esp, 8
test eax, eax
je 0x4096bb
push str.Windows_Millenium
push esi
call fcn.0040f5c7
add esp, 8
test eax, eax
je 0x4096bb
lea edx, [esp + 0x28]
mov edi, str.Prounstl.exe
jmp 0x4096c4
lea edx, [esp + 0x28]
mov edi, str.8255xdel.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov al, byte [esp + 0x13]
and ecx, 3
mov byte [esp + 0x14], al
rep movsb byte es:[edi], byte [esi]
mov edi, str.uninstall_app:
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebx
push ecx
push str.uninstall_app:
lea ecx, [esp + 0x1c]
call fcn.00402330
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x270], ebx
mov esi, ecx
mov ecx, dword [0x418218]
sub ecx, edx
cmp ecx, esi
ja 0x409747
call fcn.0040e999
cmp esi, ebx
jbe 0x40978b
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x40978b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov edi, 0x41b2a0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x418218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4097b0
call fcn.0040e999
cmp esi, ebx
jbe 0x4097f5
mov ecx, dword [esp + 0x1c]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x4097f5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x41b2a0
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov cl, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x418218]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.00405060
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x270], 0xffffffff
je 0x409857
mov al, byte [ecx - 1]
cmp al, bl
je 0x40984d
cmp al, 0xff
je 0x40984d
dec al
mov byte [ecx - 1], al
jmp 0x409857
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
lea ecx, [esp + 0x128]
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4098bb
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, str.unable_to_find_uninstall_app_n
or ecx, 0xffffffff
mov dword [esp + 0x34], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.unable_to_find_uninstall_app_n
mov ecx, edx
call fcn.00402330
call fcn.00405060
add esp, 0x10
mov eax, ebx
jmp 0x4098cd
lea ecx, [esp + 0x28]
push ecx
call fcn.00407470
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x264
ret