Function at 0x414bf2
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6add
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.CFirefoxBrowser_HandleExtensionIni___start
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.00404bd0
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x274], esi
call fcn.004017f5
pop ecx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.004058b3
lea ecx, [esp + 0x1ec]
call fcn.00431b5d
mov dword [esp + 0x270], ebx
push esi
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x1d0], 0xf
call fcn.00405a99
push str.extensions.ini
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 2
call fcn.00404bd0
lea eax, [esp + 0x1b4]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x274], 3
call fcn.00414961
push esi
push ebx
mov ecx, edi
mov byte [esp + 0x278], 2
call fcn.004058b3
push str.CFirefoxBrowser_HandleExtensionIni_sIniPath:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
mov byte [esp + 0x270], 4
cmp dword [esp + 0x1cc], 0x10
mov eax, dword [esp + 0x1b8]
jae 0x414d02
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x98]
call fcn.0041c01b
mov byte [esp + 0x270], 5
push dword [eax]
lea ecx, [esp + 0x40]
call fcn.00404bd0
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x278], 6
call fcn.00401985
pop ecx
pop ecx
push esi
push ebx
lea ecx, [esp + 0x44]
call fcn.004058b3
lea eax, [esp + 0x98]
cmp dword [esp + 0x94], eax
je 0x414d5f
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 2
call fcn.004058b3
cmp dword [esp + 0x1cc], 0x10
mov eax, dword [esp + 0x1b8]
jae 0x414d8a
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x98]
call fcn.0041c01b
mov byte [esp + 0x270], 7
push dword [eax]
lea ecx, [esp + 0x40]
call fcn.00404bd0
push eax
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x274], 8
call fcn.00431bbf
push esi
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f], al
call fcn.004058b3
lea eax, [esp + 0x98]
mov byte [esp + 0x270], 2
cmp dword [esp + 0x94], eax
je 0x414df3
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
cmp byte [esp + 0x17], 0
je 0x415401
push str.SOFTWAREMozillaFirefoxextensions
lea ecx, [esp + 0x1c]
call fcn.00404bd0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x220]
mov byte [esp + 0x27c], 9
call fcn.004069e3
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0xb
call fcn.004058b3
push 0x4d51f0
lea ecx, [esp + 0x7c]
call fcn.00404bd0
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x274], 0xc
push dword [esp + 0x38]
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x220]
call fcn.00406d31
push esi
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x278], 0xe
call fcn.004058b3
push str.CFirefoxBrowser_HandleExtensionIni_szId:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
mov byte [esp + 0x270], 0xf
push dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
call fcn.00401985
pop ecx
pop ecx
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0xe
call fcn.004058b3
push str.CFirefoxBrowser_HandleExtensionIni_value_of_::
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x278], 0x10
call fcn.00401985
pop ecx
pop ecx
push esi
push ebx
lea ecx, [esp + 0x20]
call fcn.004058b3
push esi
lea ecx, [esp + 0x19c]
mov dword [esp + 0x1b4], 0xf
call fcn.00405a99
push str.extensions_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0x11
call fcn.00404bd0
mov byte [esp + 0x270], 0x12
lea eax, [esp + 0x198]
push eax
lea edi, [esp + 0x1c]
call fcn.00414961
push esi
push ebx
mov ecx, edi
mov byte [esp + 0x278], 0x11
call fcn.004058b3
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x18], 8
jb 0x414f5c
mov eax, dword [eax + 4]
jmp 0x414f5f
add eax, 4
push 3
push eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa0]
push eax
mov dword [esp + 0xa0], ecx
call fcn.004058fe
mov byte [esp + 0x270], 0x13
push dword [esp + 0x94]
lea eax, [esp + 0x19c]
push eax
call fcn.0041c045
lea eax, [esp + 0x98]
mov byte [esp + 0x270], 0x11
cmp dword [esp + 0x94], eax
je 0x414fbe
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
push str.CFirefoxBrowser_HandleExtensionIni__sProfileExtensionPath:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
mov byte [esp + 0x270], 0x14
cmp dword [esp + 0x1b0], 0x10
mov eax, dword [esp + 0x19c]
jae 0x414fec
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x98]
call fcn.0041c01b
mov byte [esp + 0x270], 0x15
push dword [eax]
lea ecx, [esp + 0x40]
call fcn.00404bd0
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x278], 0x16
call fcn.00401985
pop ecx
pop ecx
push esi
push ebx
lea ecx, [esp + 0x44]
call fcn.004058b3
lea eax, [esp + 0x98]
cmp dword [esp + 0x94], eax
je 0x415049
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0x11
call fcn.004058b3
cmp dword [esp + 0x1b0], 0x10
mov eax, dword [esp + 0x19c]
jae 0x415074
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x98]
call fcn.0041c01b
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
lea eax, [esp + 0x98]
cmp dword [esp + 0x94], eax
je 0x4150a8
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
cmp edi, esi
je 0x415144
push str.CFirefoxBrowser_HandleExtensionIni__sProfileExtensionPath_exists
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x274], 0x17
call fcn.004017f5
pop ecx
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0x11
call fcn.004058b3
cmp dword [esp + 0x1b0], 0x10
mov eax, dword [esp + 0x19c]
jae 0x4150fc
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x98]
call fcn.0041c01b
mov byte [esp + 0x270], 0x18
push dword [eax]
lea ecx, [esp + 0x1d4]
call fcn.00405394
lea eax, [esp + 0x98]
mov byte [esp + 0x270], 0x11
cmp dword [esp + 0x94], eax
je 0x415144
push dword [esp + 0x94]
call fcn.0049f900
pop ecx
cmp dword [esp + 0x1e4], esi
je 0x4153d9
mov edi, str.Extension
push edi
lea ecx, [esp + 0x40]
call fcn.00404bd0
push str.ExtensionDirs
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0x19
call fcn.00404bd0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
lea esi, [esp + 0x1f8]
mov byte [esp + 0x27c], 0x1a
call fcn.0043219d
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x20]
call fcn.004058b3
push esi
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x278], 0x1d
call fcn.004058b3
lea eax, [esp + 0x78]
push eax
call fcn.00407b93
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x270], 0x1e
je 0x41523a
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x5c]
call fcn.00407be2
push edi
lea ecx, [esp + 0x1c]
call fcn.00404bd0
push str.ExtensionDirs
lea ecx, [esp + 0x40]
mov byte [esp + 0x274], 0x1f
call fcn.00404bd0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1f8]
push eax
mov byte [esp + 0x280], 0x20
call fcn.0043259e
push esi
push ebx
lea ecx, [esp + 0x44]
call fcn.004058b3
lea ecx, [esp + 0x18]
jmp 0x41533e
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x68]
jbe 0x415249
call fcn.004a0556
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x64], esi
jbe 0x415264
call fcn.004a0556
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], esi
lea edi, [esp + 0x70]
lea esi, [esp + 0x34]
mov dword [esp + 0x70], eax
call fcn.00407ce0
test al, al
je 0x4152b1
call fcn.00476440
push eax
lea ecx, [esp + 0x1d4]
call fcn.00404cf8
test eax, eax
je 0x4152a6
call fcn.00476440
push eax
lea eax, [esp + 0x7c]
call fcn.00407be2
lea esi, [esp + 0x34]
call fcn.00407cb5
jmp 0x415255
push str.Extension
lea ecx, [esp + 0x1c]
call fcn.00404bd0
push str.ExtensionDirs
lea ecx, [esp + 0x40]
mov byte [esp + 0x274], 0x21
call fcn.00404bd0
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1f8]
push eax
mov byte [esp + 0x280], 0x22
call fcn.0043259e
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x44]
call fcn.004058b3
push esi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0x1e
call fcn.004058b3
push str.CFirefoxBrowser_HandleExtensionIni__SetTextVector_of_ExtensionDirs
lea ecx, [esp + 0x40]
call fcn.00404bd0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x274], 0x23
call fcn.004017f5
pop ecx
lea ecx, [esp + 0x3c]
push esi
push ebx
call fcn.004058b3
lea esi, [esp + 0x78]
call fcn.00407df2
push dword [esp + 0x78]
call fcn.0049ecd9
pop ecx
lea esi, [esp + 0x58]
call fcn.00407df2
push dword [esp + 0x58]
call fcn.0049ecd9
pop ecx
xor edi, edi
push edi
push ebx
lea ecx, [esp + 0x1a0]
call fcn.00404ec6
push edi
push ebx
lea ecx, [esp + 0x1d8]
call fcn.004058b3
lea ecx, [esp + 0x214]
call fcn.004017b6
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x1bc]
call fcn.00404ec6
lea ecx, [esp + 0x1ec]
call fcn.00431b96
mov eax, edi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 8
push esi
push ebx
lea ecx, [esp + 0x1a0]
call fcn.00404ec6
push esi
push ebx
lea ecx, [esp + 0x1d8]
call fcn.004058b3
lea ecx, [esp + 0x214]
call fcn.004017b6
push 2
pop edi
jmp 0x415397