Function at 0x403000
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5f09
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
push 0x4cf374
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], vtable.CIniFile.0
call fcn.0040f300
xor ebx, ebx
mov dword [esp + 0x288], ebx
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403079
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x288], 1
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4030ab
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x288], 2
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4030dd
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x288], 3
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40310f
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
push ebx
push 0x1a
lea ecx, [esp + 0x74]
push ecx
push ebx
mov byte [esp + 0x298], 5
mov dword [esp + 0x40], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40325e
lea ecx, [esp + 0x34]
mov byte [esp + 0x288], 4
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x288], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x288], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x28], vtable.CIniFile.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40362b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40362b
lea ecx, [esp + 0x18]
push str.MozillaFirefox
push ecx
lea edi, [esp + 0x74]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x28c], 6
call fcn.0040ebc0
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4032ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403355
lea ecx, [esp + 0x34]
mov byte [esp + 0x288], 4
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x288], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40331e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], bl
lea eax, [edi - 0x10]
jmp 0x403209
lea ecx, [esp + 0x18]
push str.profiles.ini
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], 7
call fcn.0040ebc0
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4033a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403465
lea ecx, [esp + 0x34]
mov byte [esp + 0x288], 4
call fcn.0041d5f0
lea eax, [esi - 0x10]
mov byte [esp + 0x288], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x288], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40340d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403622
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403622
mov esi, edi
lea ecx, [esp + 0x28]
call fcn.0041c050
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c080
test eax, eax
je 0x4035ed
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4035ed
mov edi, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 8
call fcn.0040ebc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ed20
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push str.cookies.sqlite
push eax
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 9
call fcn.0040ebc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ed20
push 0x4cbc0c
push 0x4cbdbc
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a970
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4035ed
lea edx, [esp + 0x18]
push 0x4cbdc0
push edx
mov edi, 0x4ebd50
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x28c], 0xa
call fcn.0040ebc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ed20
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x38]
call fcn.0041d510
test eax, eax
je 0x4035ed
mov ecx, esi
lea edx, [esp + 0x34]
call fcn.0041d670
test eax, eax
je 0x403590
lea ecx, [esp + 0x34]
call fcn.0041d7a0
mov esi, eax
jmp 0x403594
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x6c]
call fcn.0041d730
lea ecx, [esp + 0x34]
call fcn.0041d5f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x288], 4
call fcn.0041d5f0
lea ecx, [esp + 0x24]
call fcn.0040ed20
lea ecx, [esp + 0x20]
call fcn.0040ed20
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x1c]
call fcn.0040ed20
lea eax, [esp + 0x28]
call fcn.0041bfe0
mov eax, esi
jmp 0x40362d
lea ecx, [esp + 0x34]
mov byte [esp + 0x288], 4
call fcn.0041d5f0
lea ecx, [esp + 0x24]
call fcn.0040ed20
lea ecx, [esp + 0x20]
call fcn.0040ed20
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x1c]
call fcn.0040ed20
lea eax, [esp + 0x28]
call fcn.0041bfe0
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004a6859
mov esp, ebp
pop ebp
ret