Function at 0x40f0f0
Capabilities:
Check if file exists
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x449e30
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov eax, dword [esp + 0x230]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x234]
push ecx
mov dword [esp + 0x4c], eax
mov dword [eax], 0xffffffff
mov eax, esp
mov esi, ecx
mov edi, edx
mov dword [esp + 0x28], esp
push eax
mov ecx, str.select__from_engine_data_where_namehidden
mov dword [esp + 0x3c], edi
call fcn.00401720
push edi
lea edi, [esp + 0x7c]
call fcn.004236c0
mov dword [esp + 0x228], 0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
lea ebp, [esi + 4]
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ebx, str.prefs.js
mov byte [esp + 0x230], 1
call fcn.004017d0
add esp, 8
lea edx, [esp + 0x6c]
push edx
mov ecx, str._browser.search.selectedEngine_
mov byte [esp + 0x22c], 2
call fcn.00401720
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x74]
lea edx, [esp + 0x44]
mov byte [esp + 0x230], 3
call fcn.00411760
mov byte [esp + 0x228], 5
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
cmp dword [ecx - 0xc], 0
mov ebx, dword [esp + 0x48]
je 0x40f2b2
mov edi, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x40]
push edx
call fcn.004106b0
cmp dword [ebx], 0
jl 0x40f2b2
mov byte [esp + 0x228], 2
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 0x40f258
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 1
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 0x40f280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x74]
push ecx
jmp 0x410672
lea edx, [esp + 0x70]
push edx
mov ecx, str._browser.search.defaultenginename_
call fcn.00401720
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x30]
mov byte [esp + 0x230], 6
call fcn.00411760
mov byte [esp + 0x228], 8
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 0xc], 0
je 0x40f3c4
mov edi, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.004106b0
cmp dword [ebx], 0
jl 0x40f3c4
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x228], 9
mov eax, dword [esp + 0x28]
push eax
push str.user_pref__browser.search.selectedEngine_____s____r_n
lea edi, [esp + 0x40]
call fcn.00405760
add esp, 8
mov ecx, edi
push ecx
lea eax, [esp + 0x20]
call fcn.00411b80
mov byte [esp + 0x228], 8
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f230
lea edx, [esp + 0x68]
push edx
mov ecx, str._browser.search.useDBForOrder_
call fcn.00401720
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
lea edx, [esp + 0x58]
mov byte [esp + 0x230], 0xa
call fcn.00411760
mov byte [esp + 0x228], 0xc
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
push 0x44ee98
push ecx
call fcn.0042ec21
add esp, 8
test eax, eax
jne 0x40fec2
add esi, 8
lea edx, [esp + 0x14]
push esi
push edx
mov ebx, str._searchplugins_
call fcn.004017d0
lea eax, [esp + 0x60]
push ebp
push eax
mov byte [esp + 0x238], 0xd
call fcn.004017d0
add esp, 0xc
mov byte [esp + 0x22c], 0xe
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov ecx, str.select_max_value__from_engine_data
call fcn.00401720
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.004235e0
mov byte [esp + 0x228], 0xf
mov eax, dword [0x458a2c]
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 1
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
test esi, esi
mov byte [esp + 0x228], 0x10
jl 0x40fc24
jg 0x40f4e0
test edi, edi
jbe 0x40fc24
jmp 0x40f4e0
mov eax, dword [esp + 0x44]
push eax
push str.select__from_engine_data_where_value_d
lea edi, [esp + 0x28]
call fcn.00405760
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x28], esp
mov edi, esp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00401a70
add eax, 0x10
mov dword [esi], eax
call fcn.0040ca60
mov ecx, dword [esp + 0x38]
push ecx
lea edi, [esp + 0x8c]
call fcn.004236c0
mov byte [esp + 0x228], 0x11
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x228], 0x12
mov ecx, dword [esp + 0x84]
push ecx
call sub.sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x40fbc2
lea ebx, [ebx]
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push edx
mov ecx, str.engineid
call fcn.00401720
lea eax, [esp + 0x88]
push eax
lea ebx, [esp + 0xec]
call fcn.0040cae0
mov byte [esp + 0x228], 0x13
mov eax, dword [eax + 0x18]
mov edi, dword [esp + 0x18]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
je 0x40f657
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x40f646
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40f646
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f5eb
cmp eax, dword [esi]
jne 0x40f5eb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40f626
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
je 0x40fc91
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042e426
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40f63d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x40f653
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.00401ae0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x228], 0x12
mov eax, dword [esp + 0x104]
xor esi, esi
cmp eax, esi
je 0x40f675
push eax
call fcn.0042e297
add esp, 4
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], esi
jg 0x40f6b7
or eax, 0xffffffff
jmp 0x40f6cf
push 0x2f
push edi
call fcn.0042ed10
add esp, 8
cmp eax, esi
jne 0x40f6cb
or eax, 0xffffffff
jmp 0x40f6cf
sub eax, edi
sar eax, 1
add eax, 1
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
call fcn.00415650
mov byte [esp + 0x228], 0x14
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x228], 0x15
mov esi, dword [esp + 0x2c]
push str._app__
push esi
call fcn.0042ec21
add esp, 8
test eax, eax
jne 0x40f89e
mov ecx, dword [esp + 0x18]
push ecx
push str.select__from_engine_data_where_engineid_s_and_namehidden
lea edi, [esp + 0x28]
call fcn.00405760
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
add esp, 8
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f761
cmp eax, dword [esi]
jne 0x40f761
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40f79c
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
je 0x40fc91
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042e426
add esp, 0x10
push ecx
lea eax, [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], esp
mov ebx, esp
mov byte [esp + 0x22c], 0x16
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f7d9
cmp eax, dword [esi]
jne 0x40f7d9
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40f814
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
je 0x40fc91
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.0042e426
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x22c], 0x15
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f83a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea edi, [esp + 0xac]
call fcn.004236c0
mov byte [esp + 0x228], 0x17
mov edx, dword [esp + 0xa4]
push edx
call sub.sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x40f87d
mov eax, edi
push eax
mov byte [esp + 0x22c], 0x15
call fcn.00422da0
jmp 0x40fb5d
mov ecx, dword [esp + 0x14]
push ecx
push str._app__
lea edx, [esp + 0x20]
push edx
call fcn.00415300
lea eax, [esp + 0xa4]
push eax
jmp 0x40fa26
push str._profile__
push esi
call fcn.0042ec21
add esp, 8
test eax, eax
jne 0x40f8c9
mov ecx, dword [esp + 0x58]
push ecx
push str._profile__
lea edx, [esp + 0x20]
push edx
call fcn.00415300
jmp 0x40fa33
mov eax, dword [esp + 0x18]
push eax
push str.select__from_engine_data_where_engineid_s_and_namehidden
lea edi, [esp + 0x28]
call fcn.00405760
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
add esp, 8
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f90a
cmp eax, dword [esi]
jne 0x40f90a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40f945
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
je 0x40fc91
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042e426
add esp, 0x10
push ecx
lea eax, [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], esp
mov ebx, esp
mov byte [esp + 0x22c], 0x18
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f982
cmp eax, dword [esi]
jne 0x40f982
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40f9bd
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
je 0x40fc91
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.0042e426
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x22c], 0x15
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f9e3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea edi, [esp + 0x9c]
call fcn.004236c0
mov edx, dword [esp + 0x94]
push edx
call sub.sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x40fa1e
mov eax, edi
push eax
mov byte [esp + 0x22c], 0x15
call fcn.00422da0
jmp 0x40fb5d
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x22c], 0x15
call fcn.00422da0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40fa8b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40fa76
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40fa76
call fcn.00401a70
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40fa6d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x30], ebp
jmp 0x40fa8b
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x34]
call fcn.00401ae0
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb5d
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov bl, 0x1a
mov byte [esp + 0x228], bl
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x238], 0x1b
call fcn.00414470
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
push esi
lea edx, [esp + 0x3c]
push edx
call fcn.004106b0
cmp dword [esi], 0
jge 0x40fc96
mov byte [esp + 0x228], bl
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x15
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 0x40fb5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x228], 0x14
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x12
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
push ecx
call sub.sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x40f570
add dword [esp + 0x44], 1
or ecx, 0xffffffff
add dword [esp + 0x5c], ecx
mov byte [esp + 0x228], 0x11
mov eax, dword [esp + 0x18]
adc dword [esp + 0x60], ecx
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fbf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x22c], 0x10
call fcn.00422da0
cmp dword [esp + 0x60], 0
jg 0x40f4e0
jl 0x40fc24
cmp dword [esp + 0x5c], 0
ja 0x40f4e0
mov byte [esp + 0x228], 0xf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fc4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0xb4]
call fcn.0040cb70
mov byte [esp + 0x228], 0xd
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xc
mov eax, dword [esp + 0x14]
jmp 0x41051c
call fcn.004161c0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x228], 0x1c
mov esi, dword [esp + 0x38]
push esi
push str.user_pref__browser.search.selectedEngine_____s____r_n
lea edi, [esp + 0x4c]
call fcn.00405760
add esp, 8
mov ecx, edi
push ecx
lea eax, [esp + 0x20]
call fcn.00411b80
mov byte [esp + 0x228], 0x1b
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], bl
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x12
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x11
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 0x40fdbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x22c], 0x10
call fcn.00422da0
mov byte [esp + 0x228], 0xf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xe
mov eax, dword [esp + 0xd4]
xor esi, esi
cmp eax, esi
je 0x40fe19
push eax
call fcn.0042e297
add esp, 4
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xd
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xc
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 0x40fea1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 8
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f387
lea ecx, [esi + 8]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ebx, str.distribution
call fcn.004017d0
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str.distribution.ini
mov byte [esp + 0x238], 0x1d
call fcn.004017d0
add esp, 0x10
mov byte [esp + 0x228], 0x1f
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x118]
push 0
push ecx
call fcn.00432ba0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x228], 0x20
mov esi, dword [esi + 0xc]
push ecx
sub esi, 0x10
mov eax, esi
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.00401a70
add eax, 0x10
lea ebx, [esp + 0x18]
mov dword [edi], eax
call fcn.004212e0
add esp, 4
mov byte [esp + 0x228], 0x21
mov ecx, dword [eax]
push ecx
push str.LocalizablePreferences__s
lea edi, [esp + 0x3c]
call fcn.00416450
mov byte [esp + 0x230], 0x20
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ffb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00401a70
add eax, 0x10
lea ebx, [esp + 0x18]
mov dword [esi], eax
call fcn.004212e0
mov eax, dword [eax]
mov ebp, dword [esp + 0x38]
add esp, 4
push eax
push 0x104
lea ecx, [esp + 0x11c]
push ecx
push str.Not_Find_
push str.browser.search.defaultenginename
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 0x410020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
lea ecx, [esp + 0x11c]
call fcn.00414fd0
lea ebx, [esp + 0x18]
call fcn.00421510
add esp, 4
lea edi, [esp + 0x28]
mov byte [esp + 0x228], 0x22
call fcn.00402e30
mov byte [esp + 0x228], 0x20
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 0x410079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, str.Not_Find_
call fcn.00414fd0
lea ebx, [esp + 0x18]
call fcn.00421400
mov eax, dword [eax]
mov edx, dword [esp + 0x2c]
add esp, 4
push eax
push edx
call fcn.0042ec21
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41018b
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x2c]
push ecx
call fcn.004106b0
cmp dword [esi], 0
jl 0x41018b
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x228], 0x23
mov ecx, dword [esp + 0x28]
push ecx
push str.user_pref__browser.search.selectedEngine_____s____r_n
lea edi, [esp + 0x1c]
call fcn.00405760
add esp, 8
mov edx, edi
push edx
lea eax, [esp + 0x20]
call fcn.00411b80
mov byte [esp + 0x228], 0x20
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 0x410156
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 0x1f
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41017a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xc
mov eax, dword [esp + 0x2c]
jmp 0x40fe85
mov dword [esp + 0x14], 1
jmp 0x4101a0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x228], 0x24
mov ecx, dword [esp + 0x14]
push ecx
push str.browser.search.order._d
lea edi, [esp + 0x38]
call fcn.00416450
add esp, 8
lea edx, [esp + 0x20]
push edx
mov ecx, 0x44eeb8
call fcn.00401720
mov byte [esp + 0x228], 0x25
mov ebp, dword [esp + 0x30]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], esp
mov esi, esp
mov dword [esp + 0x28], eax
call fcn.00415ca0
add eax, 0x10
lea ebx, [esp + 0x58]
mov dword [esi], eax
call fcn.00421400
add esp, 4
mov byte [esp + 0x228], 0x26
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004161d0
mov byte [esp + 0x228], 0x25
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x44eeb8
lea ecx, [esp + 0x28]
push ecx
call fcn.004161d0
push 1
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
call fcn.00411760
mov byte [esp + 0x228], 0x27
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x4102a8
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.004106b0
cmp dword [esi], 0
jge 0x4104a9
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x60], esp
mov esi, esp
call fcn.00401a70
add eax, 0x10
lea ebx, [esp + 0x48]
mov dword [esi], eax
call fcn.004212e0
mov eax, dword [eax]
add esp, 4
push eax
push 0x104
lea edx, [esp + 0x11c]
push edx
push str.Not_Find_
push ebp
mov ebp, dword [esp + 0x48]
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41030d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push ecx
lea ecx, [esp + 0x11c]
call fcn.00414fd0
lea ebx, [esp + 0x3c]
call fcn.00421510
add esp, 4
mov byte [esp + 0x228], 0x29
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x410387
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41037a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41037a
call fcn.00401a70
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x410371
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x410387
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401ae0
mov byte [esp + 0x228], 0x27
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 0x4103af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push ecx
mov ecx, str.Not_Find_
call fcn.00414fd0
lea ebx, [esp + 0x68]
call fcn.00421400
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
add esp, 4
push eax
push edx
call fcn.0042ec21
add esp, 8
test eax, eax
mov eax, dword [esp + 0x64]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4104d1
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.004106b0
cmp dword [esi], 0
jge 0x4105cb
add dword [esp + 0x14], 1
mov byte [esp + 0x228], 0x25
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 0x410453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x24
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 0x41047b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0x20
mov eax, dword [esp + 0x24]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4101a0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x228], 0x28
mov ecx, dword [esp + 0x28]
jmp 0x4105ee
lea eax, [esp + 0x18]
call fcn.00415080
lea eax, [esp + 0x20]
call fcn.00415080
lea eax, [esp + 0x30]
call fcn.00415080
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 0x1f
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x228], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
cmp dword [ecx], 0xffffffff
jne 0x40fea1
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
test eax, eax
je 0x40fea1
mov ecx, edx
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40fea1
mov ecx, dword [esp + 0x48]
mov dword [ecx], 0
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x40]
xor edi, edi
mov byte [esp + 0x228], 0x2b
call fcn.00415900
mov ecx, dword [eax + 4]
push ecx
push str.user_pref__browser.search.selectedEngine_____s____r_n
lea edi, [esp + 0x1c]
call fcn.00405760
add esp, 8
mov edx, edi
push edx
lea eax, [esp + 0x20]
call fcn.00411b80
jmp 0x40fe79
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x228], 0x2a
mov ecx, dword [esp + 0x18]
push ecx
push str.user_pref__browser.search.selectedEngine_____s____r_n
lea edi, [esp + 0x1c]
call fcn.00405760
mov edx, edi
add esp, 8
push edx
lea eax, [esp + 0x20]
call fcn.00411b80
mov eax, edi
call fcn.00415080
lea eax, [esp + 0x18]
call fcn.00415080
lea eax, [esp + 0x20]
call fcn.00415080
lea eax, [esp + 0x30]
call fcn.00415080
lea eax, [esp + 0x34]
call fcn.00415080
lea eax, [esp + 0x2c]
call fcn.00415080
lea eax, [esp + 0x50]
call fcn.00415080
lea eax, [esp + 0x28]
call fcn.00415080
lea eax, [esp + 0x3c]
call fcn.00415080
lea eax, [esp + 0x1c]
call fcn.00415080
lea eax, [esp + 0x4c]
call fcn.00415080
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x22c], 0xffffffff
call fcn.00422da0
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042e417
add esp, 0x218
ret 8