Function at 0x58e660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe428
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x70f200]
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 dword [ebp - 0x38], edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x44], ecx
mov ecx, eax
push 0x6304ac
mov dword [ebp - 0x3c], esi
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc520
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58e709
xor bl, bl
jmp 0x58e7d2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
xor esi, esi
call fcn.005dc190
xor edx, edx
mov ecx, eax
call fcn.0058ef60
test al, al
je 0x58e7c0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.compatibility.ini
lea ecx, [ebp - 0x28]
call fcn.005da780
push 0x800
push 0
push str.LastPlatformDir
push 0x625678
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005db1d0
mov ecx, eax
call fcn.005dbeb0
test al, al
je 0x58e7fa
lea eax, [ebp - 0x28]
inc esi
push eax
lea ecx, [ebp - 0x34]
call fcn.005dc190
mov edx, esi
mov ecx, eax
call fcn.0058ef60
test al, al
jne 0x58e756
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x34]
call fcn.005dc430
mov al, bl
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.0041e1b5
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
lea edi, [ebx + 1]
cmp edi, eax
jb 0x58e817
test eax, eax
je 0x58e812
add eax, 0xa
jmp 0x58e817
mov eax, 1
push eax
push edi
call fcn.004042f0
mov esi, eax
cmp dword [esi], ebx
ja 0x58e826
mov dword [esi], edi
mov esi, dword [esi + 8]
lea eax, [ebx + ebx*2]
mov ecx, dword [ebp - 0x40]
shl eax, 2
push 1
mov dword [ebp - 0x38], eax
add esi, eax
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc260
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 4]
cmp edi, eax
jb 0x58e85e
test eax, eax
je 0x58e859
add eax, 0xa
jmp 0x58e85e
mov eax, 1
push eax
push edi
mov ecx, esi
call fcn.004042f0
cmp dword [eax], ebx
ja 0x58e86d
mov dword [eax], edi
mov edx, dword [eax + 8]
add edx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005dc3e0
push eax
mov ecx, edx
call fcn.005dc1c0
mov ecx, eax
call fcn.005da0a0
cmp dword [esi], ebx
ja 0x58e891
mov dword [esi], edi
mov esi, dword [esi + 8]
add esi, dword [ebp - 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6243cc
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.005dbfc0
push eax
push 0x624284
mov ecx, esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58e920
mov esi, dword [ebp - 0x3c]
cmp dword [esi], ebx
ja 0x58e8e7
mov dword [esi], edi
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x44]
add esi, dword [ebp - 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6243cc
call fcn.005dc190
push eax
push 0x624284
mov ecx, esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58e969
mov eax, dword [ebp - 0x3c]
cmp dword [eax], ebx
ja 0x58e93c
mov dword [eax], edi
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._firefox.exe
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 4]
cmp edi, eax
jb 0x58e981
test eax, eax
je 0x58e97c
add eax, 0xa
jmp 0x58e981
mov eax, 1
push eax
push edi
call fcn.004042f0
cmp dword [eax], ebx
ja 0x58e98e
mov dword [eax], edi
mov esi, dword [eax + 8]
add esi, dword [ebp - 0x38]
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005dbfc0
push eax
mov ecx, esi
call fcn.005dc260
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
cmp edi, eax
jb 0x58e9bf
test eax, eax
je 0x58e9ba
add eax, 0xa
jmp 0x58e9bf
mov eax, 1
push eax
push edi
call fcn.004036b0
cmp dword [eax], ebx
ja 0x58e9cc
mov dword [eax], edi
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov dword [ecx + ebx*4], eax
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 4]
cmp edi, eax
jb 0x58e9ed
test eax, eax
je 0x58e9e8
add eax, 0xa
jmp 0x58e9ed
mov eax, 1
push eax
push edi
call fcn.004042f0
cmp dword [eax], ebx
ja 0x58e9fa
mov dword [eax], edi
mov edx, dword [eax + 8]
add edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
call fcn.005dc3e0
push eax
mov ecx, edx
call fcn.005dc1c0
mov bl, 1
jmp 0x58e7c2