Function at 0x48d4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.firefox.exe
call fcn.00468860
add esp, 8
test al, al
jne 0x48d6f3
push 4
call fcn.0051d4d3
xor esi, esi
add esp, 4
cmp eax, esi
je 0x48d534
lea ecx, [ebp - 0x3c]
mov dword [eax], ecx
mov dword [ebp - 0x3c], eax
jmp 0x48d537
mov dword [ebp - 0x3c], esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004451d0
lea edx, [ebp - 0x3c]
push edx
push str.InstallLocation
push str.Firefox
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
call fcn.0048c820
lea eax, [ebp - 0x3c]
push eax
push str.InstallLocation
push str.Firefox
push SysReAllocString
call fcn.0048c820
add esp, 0x20
xor ecx, ecx
push esi
mov word [ebp - 0x1c], cx
push 0x576bd0
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
call fcn.0044fc50
mov edx, dword [ebp - 0x28]
mov esi, dword [edx]
mov edi, dword [ebp - 0x3c]
push ebx
mov ebx, dword [ebp - 0x28]
test edi, edi
je 0x48d5ac
cmp edi, dword [ebp - 0x3c]
je 0x48d5b1
call fcn.0051f89a
cmp esi, ebx
je 0x48d696
test edi, edi
jne 0x48d638
call fcn.0051f89a
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x48d5ce
call fcn.0051f89a
push str._firefox.exe
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0045e100
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.0044f8b0
mov ebx, 8
cmp dword [ebp - 0x40], ebx
jb 0x48d606
mov edx, dword [ebp - 0x54]
push edx
call fcn.0051d230
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x48d611
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48d640
test edi, edi
jne 0x48d63c
call fcn.0051f89a
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x48d631
call fcn.0051f89a
mov esi, dword [esi]
jmp 0x48d5a0
mov eax, dword [edi]
jmp 0x48d5c4
mov eax, dword [edi]
jmp 0x48d627
cmp dword [ebp - 8], ebx
jb 0x48d651
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0051d230
add esp, 4
xor ecx, ecx
mov word [ebp - 0x1c], cx
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
call fcn.0047a520
mov edx, dword [ebp - 0x28]
push edx
call fcn.0051d230
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x28], esi
call fcn.0051d230
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 8
jb 0x48d6a8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0051d230
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], dx
call fcn.0047a520
mov eax, dword [ebp - 0x28]
push eax
call fcn.0051d230
mov ecx, dword [ebp - 0x3c]
push ecx
mov dword [ebp - 0x28], 0
call fcn.0051d230
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
jb 0x48d717
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret