Function at 0x410420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b04ef
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4d25ac]
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
xor ebx, ebx
mov word [ebp - 0xc8], ax
push 0x26
mov eax, str.CFirefoxBrowser_EnableToolband___start
lea esi, [ebp - 0xcc]
mov edi, ecx
mov byte [ebp - 0xaa], bl
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [ebp - 4], ebx
call fcn.00403780
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xb4], 8
jb 0x4104b0
mov edx, dword [ebp - 0xc8]
push edx
call fcn.00491101
add esp, 4
push ebx
push 0x4d35a0
push 0x4d35c0
push ebx
push edi
call fcn.004abc04
mov edi, eax
xor eax, eax
add esp, 0x14
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], ebx
lea esi, [ebp - 0xcc]
mov word [ebp - 0xc8], ax
cmp edi, ebx
jne 0x410521
push 0x41
mov eax, str.CFirefoxBrowser_EnableToolband___Error_in_casting___return_false.
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [ebp - 4], 1
call fcn.00403780
add esp, 4
cmp dword [ebp - 0xb4], 8
jb 0x410be7
mov edx, dword [ebp - 0xc8]
push edx
jmp 0x410bdf
push 0x2d
mov eax, str.CFirefoxBrowser_EnableToolband__ff_toolbar_id
call fcn.00401f30
lea edx, [ebp - 0xcc]
lea ecx, [edi + 4]
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 0xf4], ecx
call fcn.004035d0
add esp, 4
cmp dword [ebp - 0xb4], 8
jb 0x410564
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00491101
add esp, 4
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
mov dword [ebp - 4], 3
xor ecx, ecx
mov edi, 7
push 0xe
mov eax, 0x4b9758
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xc8], cx
call fcn.00401f30
lea edx, [ebp - 0x80]
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040f750
mov byte [ebp - 4], 3
cmp dword [ebp - 0xb4], 8
jb 0x4105cf
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00491101
add esp, 4
cmp dword [ebp - 0x68], 0x10
jb 0x4105e6
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
cmp eax, ebx
jne 0x4105ef
xor eax, eax
jmp 0x41063d
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x410636
lea eax, [edi + edi]
call fcn.0049a5e0
mov esi, esp
cmp esi, ebx
je 0x410636
mov ecx, dword [ebp - 0xb0]
push edi
push esi
push 0xffffffffffffffff
push ecx
push ebx
xor eax, eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x410638
xor eax, eax
mov edi, 7
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x410650
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00401f30
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], ebx
je 0x410b4e
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x410681
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410b4e
xor eax, eax
mov dword [ebp - 0xd0], ebx
mov byte [ebp - 0xa9], bl
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 7
jmp 0x4106b2
xor ebx, ebx
mov edx, dword [0x4d4934]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d4934
call eax
add eax, 0x10
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xd0]
push ecx
push str.Extension_d
lea edi, [ebp - 0xb0]
mov byte [ebp - 4], 8
call fcn.00408d60
mov eax, dword [ebp - 0xb0]
add esp, 8
xor edx, edx
mov edi, 7
mov ecx, eax
mov word [ebp - 0x60], dx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x410705
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [ebp - 0x64]
call fcn.00401f30
xor eax, eax
mov dword [ebp - 0xa8], vtable.CINIReader.0
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x84], bl
lea ecx, [ebp - 0x2c]
push ecx
lea edi, [ebp - 0xa8]
mov byte [ebp - 4], 0xa
call fcn.00420210
xor edx, edx
push 0xd
mov eax, str.ExtensionDirs
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xc8], dx
call fcn.00401f30
mov eax, esi
mov ecx, edi
push eax
push ecx
lea ecx, [ebp - 0x64]
lea edi, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call fcn.00420340
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.00401c20
mov edi, 8
cmp dword [ebp - 0xd8], edi
jb 0x4107c9
mov edx, dword [ebp - 0xec]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov esi, 7
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], ebx
mov word [ebp - 0xec], ax
cmp dword [ebp - 0xb4], edi
jb 0x4107fe
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00491101
add esp, 4
mov dword [ebp - 0xb4], esi
xor edx, edx
push 0x2d
mov eax, str.CFirefoxBrowser_EnableToolband._szToolbarDir
lea esi, [ebp - 0xcc]
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xc8], dx
call fcn.00401f30
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.004035d0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xb4], edi
jb 0x410852
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.00491101
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x41085d
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0xd4]
push edx
call fcn.00407810
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 0xe
call fcn.00410c10
mov ebx, eax
call fcn.00410c90
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410886
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00401f30
cmp dword [ebp - 0x34], 0
je 0x410a8a
cmp dword [ebp - 0xd0], 0x1f4
jg 0x410a8a
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x18], 8
mov ebx, dword [eax + 0x14]
jb 0x4108cc
mov eax, dword [eax + 4]
jmp 0x4108cf
add eax, 4
push eax
xor eax, eax
lea edx, [ebp - 0x48]
call fcn.004083d0
xor ebx, ebx
mov edi, 7
cmp eax, 0xffffffff
je 0x41094b
xor eax, eax
mov word [ebp - 0xec], ax
push 0x26
mov eax, str.CFirefoxBrowser_EnableToolband___start
lea esi, [ebp - 0xf0]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov byte [ebp - 4], 0x10
call fcn.00403780
mov esi, 8
add esp, 4
cmp dword [ebp - 0xd8], esi
jb 0x410938
mov edx, dword [ebp - 0xec]
push edx
call fcn.00491101
add esp, 4
mov eax, 1
mov byte [ebp - 0xaa], al
mov byte [ebp - 0xa9], al
jmp 0x410955
mov esi, 8
mov eax, 1
add dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa8], vtable.CINIReader.0
cmp eax, ebx
je 0x4109a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x8c], esi
jb 0x4109b9
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
cmp dword [ebp - 0x4c], esi
jb 0x4109df
mov eax, dword [ebp - 0x60]
push eax
call fcn.00491101
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
add eax, 0xfffffff0
mov word [ebp - 0x60], cx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410a11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xa9], bl
je 0x4106b0
cmp dword [ebp - 0x34], 0
jne 0x4106b0
mov ebx, 7
mov esi, 8
cmp dword [ebp - 0x30], esi
jb 0x410a42
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00491101
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], dx
cmp dword [ebp - 0x14], esi
jb 0x410a61
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
jb 0x410a7f
mov edx, dword [ebp - 0x7c]
push edx
call fcn.00491101
add esp, 4
mov al, byte [ebp - 0xaa]
jmp 0x410be9
mov eax, str.CFirefoxBrowser_EnableToolband___szToolbarDir_is_empty
lea ecx, [ebp - 0xf0]
call fcn.00401fe0
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0xf
call fcn.00403780
mov esi, 8
add esp, 4
cmp dword [ebp - 0xd8], esi
jb 0x410ac9
mov edx, dword [ebp - 0xec]
push edx
call fcn.00491101
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410aef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xa8]
call fcn.004201c0
cmp dword [ebp - 0x4c], esi
jb 0x410b0b
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00491101
add esp, 4
mov ebx, 7
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xb0]
xor edx, edx
add eax, 0xfffffff0
mov word [ebp - 0x60], dx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410a31
xor eax, eax
mov word [ebp - 0xec], ax
push 0x45
mov eax, str.CFirefoxBrowser_EnableToolband___Error_PathFileExists___return_false.
lea esi, [ebp - 0xf0]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], ebx
call fcn.00401f30
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x410b89
lea eax, [ebp - 0x28]
cmp eax, ebx
setne cl
movzx edx, cl
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00403190
add esp, 8
cmp dword [ebp - 0xd8], esi
jb 0x410bb8
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.00491101
add esp, 4
cmp dword [ebp - 0x14], esi
jb 0x410bc9
mov edx, dword [ebp - 0x28]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
jb 0x410be7
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.00491101
add esp, 4
xor al, al
lea esp, [ebp - 0x108]
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.0049110c
mov esp, ebp
pop ebp
ret