Function at 0x479710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9f91
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ff1a0]
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
xor eax, eax
mov dword [ebp - 0x70], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
call fcn.00410830
lea ebx, [ebp - 0x48]
mov ecx, eax
call fcn.00411e50
mov byte [ebp - 4], 2
push str.MozillaFirefoxProfiles
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00427210
add esp, 0xc
mov byte [ebp - 4], 4
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x479794
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x1c], esi
je 0x4797c7
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4797b6
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x47981b
lea eax, [ebp - 0x58]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp edi, eax
je 0x4797e7
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x70], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jb 0x479803
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], dl
jmp 0x479986
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 5
push esi
push 1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00425430
mov ebx, dword [ebp - 0x6c]
add esp, 0x10
cmp ebx, dword [ebp - 0x68]
je 0x479894
push str.extensions
lea edx, [ebp - 0x48]
push ebx
push edx
call fcn.00410b20
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, eax
lea edi, [ebp - 0x58]
call fcn.00425930
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 8
jb 0x479879
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
add ebx, 0x1c
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
cmp ebx, dword [ebp - 0x68]
jne 0x479843
mov edi, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp edi, edx
je 0x4798bd
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x70], 1
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x47990e
mov ebx, dword [ebp - 0x68]
mov edi, eax
cmp eax, ebx
je 0x479902
cmp dword [edi + 0x14], 8
jb 0x4798e9
mov eax, dword [edi]
push eax
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
add edi, 0x1c
cmp edi, ebx
jne 0x4798d8
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00490458
mov edi, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x47992d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], dl
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x479986
mov ebx, dword [ebp - 0x54]
mov edi, eax
cmp eax, ebx
je 0x479977
cmp dword [edi + 0x14], 8
jb 0x479961
mov eax, dword [edi]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], cx
add edi, 0x1c
cmp edi, ebx
jne 0x479950
mov edx, dword [ebp - 0x58]
push edx
call fcn.00490458
mov edi, dword [ebp - 0x5c]
add esp, 4
mov eax, edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
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.004911d1
mov esp, ebp
pop ebp
ret