Function at 0x401360
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x29c
push ebp
mov ebp, dword [esp + 0x2a4]
push esi
cmp ebp, 6
push edi
mov esi, ecx
jne 0x4013a9
push str.iexplore.exe
call fcn.00401620
test eax, eax
jne 0x40160e
mov eax, dword [esp + 0x2b0]
mov ecx, esi
push eax
call fcn.00401d50
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 7
jne 0x40141f
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4013da
mov dword [esp + 0x10], 5
push str.iexplore.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x40160e
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2b0]
cmp eax, 6
jb 0x401406
push edi
mov ecx, esi
call fcn.00402380
push edi
mov ecx, esi
call fcn.00402170
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 8
jne 0x40145c
push str.iexplore.exe
mov ecx, esi
call fcn.00401620
mov edi, dword [esp + 0x2b0]
test eax, eax
jne 0x401443
push edi
mov ecx, esi
call fcn.00402560
push edi
mov ecx, esi
call fcn.004027f0
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 9
jne 0x401480
push str.iexplore.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x401480
mov edx, dword [esp + 0x2b0]
mov ecx, esi
push edx
call fcn.004029b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a5]
mov byte [esp + 0x1a4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x1a4]
push eax
push 0
push 0
push 0x1c
push 0
call edi
test eax, eax
je 0x4014ed
push str._ClearBrowserCache_SHGetFolderPath_LOCAL_APPDATA_Failed_n
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x29c
ret 8
lea ecx, [esp + 0xa0]
push ecx
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x40151e
push str._ClearBrowserCache_SHGetFolderPath_APPDATA_Failed_n
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 1
jne 0x401564
push str.firefox.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x40160e
mov edx, dword [esp + 0x2b0]
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0x1a8]
push eax
push ecx
mov ecx, esi
call fcn.00401760
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 2
jne 0x4015a5
push str.chrome.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x40160e
lea edx, [esp + 0xa0]
lea eax, [esp + 0x1a4]
push edx
push eax
mov ecx, esi
call fcn.00401b40
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 3
jne 0x4015e2
push str.Opera.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x40160e
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x1a4]
push ecx
push edx
mov ecx, esi
call fcn.00401c90
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8
cmp ebp, 4
jne 0x40160e
push str.Safari.exe
mov ecx, esi
call fcn.00401620
test eax, eax
jne 0x40160e
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x1a4]
push eax
push ecx
mov ecx, esi
call fcn.00401bf0
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x29c
ret 8