Function at 0x409d30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
push 0x104
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 + 0x390]
push str.Windows_98
push esi
call fcn.004104a7
add esp, 8
test eax, eax
je 0x409dab
push str.Windows_Millenium
push esi
call fcn.004104a7
add esp, 8
test eax, eax
je 0x409dab
lea edx, [esp + 0x28]
mov edi, str.Prounstl.exe
jmp 0x409db4
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 + 0x388], ebx
mov esi, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, esi
ja 0x409e37
call fcn.0040f879
cmp esi, ebx
jbe 0x409e7b
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x409e7b
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, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x409ea0
call fcn.0040f879
cmp esi, ebx
jbe 0x409ee5
mov ecx, dword [esp + 0x1c]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x409ee5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x41c2dc
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 [0x419218]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x388], 0xffffffff
je 0x409f47
mov al, byte [ecx - 1]
cmp al, bl
je 0x409f3d
cmp al, 0xff
je 0x409f3d
dec al
mov byte [ecx - 1], al
jmp 0x409f47
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
lea ecx, [esp + 0x240]
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x409f9f
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.004051f0
add esp, 0x10
mov eax, ebx
jmp 0x409fe5
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x12c]
stosw word es:[edi], ax
push ecx
push str.__s___nogui
push edx
stosb byte es:[edi], al
call fcn.004109b4
lea eax, [esp + 0x138]
push eax
call fcn.00407be0
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0x380]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x37c
ret