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

Disassembly:
push 0xffffffffffffffff
push 0x4c4517
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
mov dword [esp + 0x30], 0
push 0x4cf374
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], vtable.CIniFile.0
call fcn.0040f300
mov ebp, 1
mov dword [esp + 0x26c], ebp
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409eba
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 + 0x24], edi
mov byte [esp + 0x26c], 2
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409eec
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x26c], 3
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409f1e
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 + 0x38], esi
push 0
push 0x1a
lea ecx, [esp + 0x5c]
push ecx
push 0
mov byte [esp + 0x27c], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40a006
mov ecx, dword [esp + 0x1c]
push 0x4cf374
call fcn.0040f300
lea eax, [esi - 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x26c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409f85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x26c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x26c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 0
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 0x409ffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x40a748
lea ecx, [esp + 0x14]
push str.MozillaFirefox
push ecx
lea edi, [esp + 0x5c]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x270], 5
call fcn.0040ebc0
mov byte [esp + 0x26c], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40a094
mov ecx, dword [esp + 0x1c]
push 0x4cf374
call fcn.0040f300
lea eax, [esi - 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x26c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x409f79
lea ecx, [esp + 0x14]
push str.profiles.ini
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x270], 6
call fcn.0040ebc0
mov byte [esp + 0x26c], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a0e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x38]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x40a1b4
mov esi, dword [esp + 0x1c]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 1
mov byte [esp + 0x26c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x26c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 0
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 0x40a1ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40a748
test edi, edi
jne 0x40a1bc
xor eax, eax
jmp 0x40a1d0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a1c1
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0040f1b0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c080
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40a68e
cmp dword [esi - 0xc], 0
je 0x40a68e
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 7
call fcn.0040ebc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 4
call fcn.0040ed20
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push str.prefs.js
push eax
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 8
call fcn.0040ebc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 4
call fcn.0040ed20
push 0x4cbc0c
push 0x4cbdbc
lea ecx, [esp + 0x20]
push ecx
call fcn.0040a970
mov edx, dword [esp + 0x18]
push edx
call ebp
test eax, eax
jne 0x40a2c7
mov esi, dword [esp + 0x1c]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
lea ecx, [esp + 0x38]
call fcn.0040ed20
lea ecx, [esp + 0x18]
call fcn.0040ed20
lea ecx, [esp + 0x24]
call fcn.0040ed20
lea eax, [esp + 0x28]
call fcn.0041bfe0
mov eax, esi
jmp 0x40a748
lea ecx, [esp + 0x20]
call fcn.0040ec60
lea ecx, [esp + 0x14]
call fcn.0040ec60
lea ecx, [esp + 0x34]
call fcn.0040ec60
lea ecx, [esp + 0x40]
mov byte [esp + 0x26c], 0xb
call fcn.00499487
mov bl, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], bl
call fcn.0040ef80
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0049949f
test eax, eax
jne 0x40a364
mov esi, dword [esp + 0x1c]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 1
mov byte [esp + 0x26c], 0xb
call fcn.004998c0
lea ecx, [esp + 0x34]
call fcn.0040ed20
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x20]
call fcn.0040ed20
jmp 0x40a29c
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
call fcn.004999db
test eax, eax
je 0x40a4dc
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], 0
jl 0x40a364
push str.user_pref__browser.startup.homepage_
push eax
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x40a364
mov ecx, dword [esp + 0x34]
sub eax, ecx
sar eax, 1
mov edx, eax
js 0x40a364
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 0x24
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x3c]
call fcn.0040ad10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x270], 0xd
call fcn.0040ebc0
mov byte [esp + 0x26c], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
cmp dword [ebp - 0xc], 0
jl 0x40a4e0
push 0x4cf1f4
push ebp
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x40a4e0
sub eax, ebp
sar eax, 1
mov ecx, eax
js 0x40a4e0
mov eax, dword [ebp - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ad10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x270], 0xe
call fcn.0040ebc0
mov byte [esp + 0x26c], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
cmp dword [ebp - 0xc], 0
jl 0x40a4e0
push 0x4cf1f4
push ebp
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x40a4e0
sub eax, ebp
sar eax, 1
js 0x40a4e0
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ad90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], 0xf
call fcn.0040ebc0
mov byte [esp + 0x26c], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a4e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a4e0
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x40]
call fcn.00499855
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a514
cmp eax, dword [esi]
jne 0x40a514
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a550
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40a52d
call fcn.0040f090
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004a6868
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
mov dword [edi], edx
mov dword [esp + 0x30], 1
mov byte [esp + 0x26c], 0xb
call fcn.004998c0
mov byte [esp + 0x26c], 0xa
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a59a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 9
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5bb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x26c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a62f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 0
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 0x40a687
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40a748
mov ebx, dword [esp + 0x1c]
push 0x4cf374
mov ecx, ebx
call fcn.0040f300
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 1
mov byte [esp + 0x26c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x26c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 0
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 0x40a746
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004a6859
add esp, 0x25c
ret 4