Function at 0x42b740
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdd9e
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x633ef8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
je 0x42b78a
call fcn.0042bde0
jmp 0x42ba69
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0058f590
add esp, 0xc
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x42b7b5
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x324], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x324]
push dword [edi + 0x978]
push dword [edi + 0x980]
push str._s_s.xpi
push eax
call fcn.00415ec0
add esp, 0x10
lea eax, [ebp - 0x114]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [ebp - 0x324]
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42ba4e
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.0058f590
add esp, 0xc
lea eax, [ebp - 0x31c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [edi + 0x978]
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x218]
push str._s_s_s.xpi
push eax
call fcn.0042d480
add esp, 0x14
lea eax, [ebp - 0x218]
push 0
push eax
lea eax, [ebp - 0x114]
push eax
call dword [0x641010]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42ba4e
push str.SoftwareMozillaFireFoxextensions
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x320], 0
call fcn.004160f0
mov byte [ebp - 4], 2
lea edx, [edi + 0x97c]
mov eax, dword [edx]
mov ecx, 1
mov dword [ebp - 0x32c], edx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x42b8ee
push 0x104
mov ecx, edx
call fcn.004165b0
lea edx, [edi + 0x97c]
mov eax, dword [edx]
mov edx, 1
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x42b927
push 0x104
lea ecx, [ebp - 0x320]
call fcn.004165b0
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x328]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042c220
mov eax, dword [edi + 0x978]
test eax, eax
jne 0x42b94d
xor ecx, ecx
jmp 0x42b963
push dword [eax - 8]
push eax
call fcn.0059ea3d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x42baa6
mov eax, dword [edi + 0x978]
cmp ecx, dword [eax - 8]
jg 0x42baa6
mov dword [eax - 0xc], ecx
mov eax, dword [edi + 0x978]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x320]
push dword [eax - 8]
push eax
call fcn.0059ea3d
add esp, 8
test eax, eax
js 0x42baa6
mov ecx, dword [ebp - 0x320]
cmp eax, dword [ecx - 8]
jg 0x42baa6
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x320]
mov byte [eax + ecx], 0
call fcn.0042ccb0
test eax, eax
je 0x42ba2d
lea eax, [ebp - 0x328]
push eax
push 0xf013f
push 0
push str.SoftwareMozillaFireFox
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ba2d
mov edi, dword [ebp - 0x32c]
mov ecx, 1
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x42ba08
push 0x104
mov ecx, edi
call fcn.004165b0
lea eax, [ebp - 0x218]
push eax
push dword [edi]
push str.extensions
push dword [ebp - 0x328]
call fcn.0042c220
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x320]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ba4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42ba69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42ba88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005892bc
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00416970
int3