Function at 0x402181
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
and byte [0x41f7e8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov esi, 0x41f7e8
dec eax
cmp eax, 0x13
ja case.default.0x4021bc
jmp dword [eax*4 + 0x402592]
push 0
push esi
call fcn.004025e2
pop ecx
pop ecx
jmp case.default.0x4021bc
push 0
push esi
call fcn.004025e2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
push 0x417064
push esi
call edi
push str.webdriver
push esi
call edi
jmp case.default.0x4021bc
push 0
push esi
call fcn.004025e2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
push 0x417064
push esi
call edi
push str.updater
jmp 0x4021ef
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.default.0x4021bc
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsNetscape.exe
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x402266
lea eax, [ebp - 0x104]
push eax
call fcn.0040212b
movzx eax, al
test eax, eax
pop ecx
je 0x402537
push str.java_bin
lea eax, [ebp - 0x104]
push eax
push str._s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x402522
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsNetscape.exe
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x4022c5
lea eax, [ebp - 0x104]
push eax
call fcn.0040212b
movzx eax, al
test eax, eax
pop ecx
je 0x402537
push 0x41721c
jmp 0x40226b
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsNetscape.exe
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x40230b
lea eax, [ebp - 0x104]
push eax
call fcn.0040212b
movzx eax, al
test eax, eax
pop ecx
je 0x402537
push str.javaclasses
jmp 0x40226b
push ebx
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsNetscape.exe
call fcn.00402abc
mov ebx, eax
add esp, 0x14
test ebx, ebx
lea eax, [ebp - 0x104]
je 0x402366
mov edi, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push eax
call edi
and byte [eax], 0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call edi
add esp, 0x10
and byte [eax], 0
jmp 0x402370
push eax
call fcn.0040212b
pop ecx
movzx ebx, al
test ebx, ebx
pop ebx
je 0x402537
push str.Users
jmp 0x40226b
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push 0x41721c
push str.Extensions
push str.Netscape_6
push str.SoftwareMozilla
call fcn.00402b17
add esp, 0x1c
test eax, eax
je 0x402522
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402522
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push 0x41721c
jmp 0x402468
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push 0x41721c
jmp 0x40248d
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push 0x41721c
jmp 0x4024b2
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push 0x41721c
jmp 0x4024d7
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Components
jmp 0x402399
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Components
push str.Extensions
push str.Netscape_7
jmp 0x4023a3
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Components
push str.Extensions
push 0x4171bc
jmp 0x4023a3
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Components
push str.Extensions
push str.Compu
jmp 0x4023a3
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Components
push str.Extensions
push str.Ameri
jmp 0x4023a3
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsOpera.exe
call fcn.00402abc
add esp, 0x14
test eax, eax
je 0x402537
push esi
lea eax, [ebp - 0x104]
push str.ProgramPlugins
push eax
call fcn.00402c1d
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402537
push esi
call edi
test al, 0x10
jne case.default.0x4021bc
and byte [0x41f7e8], 0
cmp dword [ebp + 0xc], 0
je 0x40254e
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
leave
ret
push 0x104
lea eax, [ebp - 0x104]
push 0x80000002
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
call fcn.00402abc
add esp, 0x14
test eax, eax
je 0x402537
push esi
lea eax, [ebp - 0x104]
push str.WildTangent
push eax
call fcn.00402c1d
add esp, 0xc
jmp case.default.0x4021bc