Function at 0x401780
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa3c
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0xa38], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push str.fromdll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40238a
call fcn.004016d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x401cf5
xor ebx, ebx
push 0x103
lea eax, [esp + 0xfd]
push ebx
push eax
mov byte [esp + 0x104], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x100]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x24]
push edx
mov ecx, str.DLIKHAENGQDTCLGEDS
call fcn.00402410
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00402e40
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
call fcn.004013d0
mov eax, dword [esp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 8
or ecx, dword [eax - 8]
jge 0x40184c
xor ecx, ecx
lea eax, [esp + 0xc]
call fcn.00402df0
mov eax, dword [esp + 0xc]
push eax
lea edx, [esp + 0xfc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
push eax
mov ecx, str.EFHGHXCABMEEIUJMGQDNCLHIHKJMHIENFEDKHJCDCEFNGPDWEZHGGKFB
call fcn.00402410
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00402e40
lea ecx, [esp + 0x18]
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.004013d0
push 0x103
lea edx, [esp + 0x41d]
push ebx
push edx
mov byte [esp + 0x424], bl
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 0x14
or ecx, dword [eax - 8]
jge 0x4018c9
xor ecx, ecx
lea eax, [esp + 0x14]
call fcn.00402df0
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea edx, [esp + 0x414]
push edx
call edi
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x41c]
push edx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
push 0x103
lea eax, [esp + 0x30d]
push ebx
push eax
mov byte [esp + 0x314], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0xf8]
push ecx
push 0x104
lea edx, [esp + 0x310]
push edx
push 0x4069dc
push str.favflag
push str.rili
call esi
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x406394
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40197b
push 0x4069dc
lea edx, [esp + 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x103
lea eax, [esp + 0x205]
push ebx
push eax
mov byte [esp + 0x20c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x51d]
push ebx
push ecx
mov byte [esp + 0x524], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea edx, [esp + 0x520]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x518]
push eax
lea ecx, [esp + 0x204]
push ecx
call edi
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push edx
mov ecx, str.DLFZCHIFEFGDJJEGJTGBAMBFDXBRFKHOERBGFYFEIPAEHJEQDQHCEWFCAMIWGSGYFTIFEZFKARGQDKBZDMEMDV
call fcn.00402410
lea eax, [esp + 0x24]
push eax
call fcn.004013d0
mov eax, dword [esp + 0x28]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 8
or ecx, dword [eax - 8]
jge 0x401a18
xor ecx, ecx
lea eax, [esp + 0x20]
call fcn.00402df0
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x200]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401c53
push str.insert_into_tb_fav_values_NULL_0_0_9.9
call fcn.004012d0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x401a58
mov dword [esp + 0x10], ebx
jmp 0x401a75
mov ebx, eax
call fcn.00401340
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x10], ebx
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x204]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.sqlite3.dll_sqlite3_open
add esp, 8
cmp eax, ebx
je 0x401b56
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 0x401aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x401ada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x401b3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa38]
xor ecx, esp
call fcn.004043bc
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.create_table_tb_fav_id_INTEGER_PRIMARY_KEY_parent_id_int_is_folder_tinyint_title_varchar_256__url_varchar_1024__pos_int__create_time_bigint_last_modify_time_bigint_is_best_tinyint_reserved_int__
push edx
call sub.sqlite3.dll_sqlite3_exec
mov ecx, dword [esp + 0x2c]
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.select_count___from_tb_fav
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x401130
push str.select__from_tb_fav_
push eax
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
cmp byte [0x408518], bl
jne 0x401c46
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push edx
push eax
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, 0x406550
call fcn.004013a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push eax
push edx
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, 0x4065c8
call fcn.004013a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push eax
push edx
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, 0x406660
call fcn.004013a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push eax
push edx
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, str.insert_into_tb_fav_values_NULL_0_0_
call fcn.004013a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push eax
push edx
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
call sub.sqlite3.dll_sqlite3_close
add esp, 4
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 0x401c73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x401c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x401cfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401cfd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x205]
push ebx
push ecx
mov byte [esp + 0x20c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x835]
push ebx
push edx
mov byte [esp + 0x83c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea eax, [esp + 0x838]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x830]
push ecx
lea edx, [esp + 0x204]
push edx
call edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov ecx, str.DLFZCHIFEFGDJJEGJTGBAMBFDXBRFKHOERBGFYFEIPAEHJEQDQHCEWFCAMIWGSGYFTIFEZFKARGQDKBZDMEMDV
call fcn.00402410
lea ecx, [esp + 0x18]
push ecx
call fcn.004013d0
add esp, 8
push str.TencentQQBrowserDB_favorite.db
lea edx, [esp + 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x200]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40236a
push 0x103
lea ecx, [esp + 0xfd]
push ebx
push ecx
mov byte [esp + 0x104], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea edx, [esp + 0x100]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str._favlnk.ini
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea ecx, [esp + 0x30d]
push ebx
push ecx
mov byte [esp + 0x314], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.http:__khit.cn_soft_favlnk.ini
lea edx, [esp + 0x30c]
push edx
call edi
lea eax, [esp + 0x308]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x314]
push edx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
lea eax, [esp + 0x54]
push eax
call fcn.00402640
push 0x103
lea ecx, [esp + 0x72d]
push ebx
push ecx
mov byte [esp + 0x734], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x415]
push ebx
push edx
mov byte [esp + 0x41c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
push 0x104
lea ecx, [esp + 0x730]
push ecx
push 0x4069dc
push str.lnkname
push str.favlnk
call esi
test eax, eax
jne 0x401eaf
lea edx, [esp + 0x54]
push edx
jmp 0x402365
lea ecx, [esp + 0xf8]
push ecx
push 0x104
lea edx, [esp + 0x418]
push edx
push 0x4069dc
push str.lnkqq
push str.favlnk
call esi
lea eax, [esp + 0x728]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x38]
push ecx
lea ebx, [esp + 0x58]
call fcn.00402730
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x410]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x38]
push eax
call fcn.00402730
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x410]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x728]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xc8]
push edx
call fcn.004027d0
lea ecx, [esp + 0x88]
push ecx
mov ecx, eax
call fcn.00403cb0
lea edx, [esp + 0x88]
push edx
lea edi, [esp + 0x28]
call fcn.00402530
lea eax, [esp + 0x88]
push eax
call fcn.004023b0
lea ecx, [esp + 0xc0]
push ecx
call fcn.004023b0
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor ebx, ebx
push 0x103
lea edx, [esp + 0x625]
push 0
push edx
mov byte [esp + 0x62c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea eax, [esp + 0x93d]
push 0
push eax
mov byte [esp + 0x944], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x51d]
push 0
push ecx
mov byte [esp + 0x524], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
inc ebx
push ebx
lea edx, [esp + 0x51c]
push str.favcommonlnk_d
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
push 0x104
lea ecx, [esp + 0x628]
push ecx
push 0x4069dc
push str.name
lea edx, [esp + 0x52c]
push edx
call esi
test eax, eax
je 0x402111
lea eax, [esp + 0xf8]
push eax
push 0x104
lea ecx, [esp + 0x940]
push ecx
push 0x4069dc
push 0x4067a8
lea edx, [esp + 0x52c]
push edx
call esi
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x620]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.004027d0
lea edx, [esp + 0x88]
push edx
mov ecx, eax
call fcn.00403cb0
lea eax, [esp + 0x88]
push eax
lea edi, [esp + 0x28]
call fcn.00402530
lea ecx, [esp + 0x88]
push ecx
call fcn.004023b0
lea edx, [esp + 0xc0]
push edx
call fcn.004023b0
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebx, 0x32
jl 0x401fb0
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.insert_into_favorite_values_1_http:__www.songgeliwu.com_hot__qq_
call fcn.004012d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402141
call fcn.00401340
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x200]
push 0x40851c
push ecx
mov dword [esp + 0x14], 0
call sub.sqlite3.dll_sqlite3_open
add esp, 8
test eax, eax
je 0x402175
lea edx, [esp + 0x54]
push edx
call fcn.004026a0
mov eax, dword [esp + 0x14]
jmp 0x401b1e
mov edx, dword [0x40851c]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.create_table_favorite_id_INTEGER_UNIQUE_url_TEXT_title_TEXT_type_INTEGER_parentid_INTEGER_nextid_INTEGER_firstchildid_INTEGER_titlewidth_INTEGER_hitcount_INTEGER_param1_INTEGER_param2_INTEGER_param3_INTEGER__
push edx
call sub.sqlite3.dll_sqlite3_exec
mov ecx, dword [0x40851c]
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.select_count___from_favorite
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov eax, dword [0x40851c]
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0
push 0x401180
push str.select__from_favorite_
push eax
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
cmp byte [0x408518], 0
jne 0x402347
mov ecx, dword [0x408538]
mov ebx, dword [ecx]
mov esi, dword [0x408520]
mov edi, 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
jmp 0x402200
mov edx, dword [0x408538]
mov dword [esp + 0x34], edx
test esi, esi
je 0x402216
cmp esi, dword [0x408520]
je 0x40221c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x34]
je 0x402347
push 0x103
lea eax, [esp + 0x625]
push 0
push eax
mov byte [esp + 0x62c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jne 0x40226b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40225c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x24], 0x10
jb 0x40226f
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x10], ecx
jmp 0x402276
mov eax, dword [esi]
jmp 0x402251
lea edx, [ebx + 0x10]
mov dword [esp + 0x10], edx
test esi, esi
jne 0x402296
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 0x18]
jne 0x40228b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x40], 0x10
jb 0x40229a
mov eax, dword [ebx + 0x2c]
jmp 0x40229d
mov esi, dword [esi]
jmp 0x402280
lea eax, [ebx + 0x2c]
mov ecx, dword [0x40850c]
mov edx, dword [0x408510]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
push edi
lea edx, [esp + 0x634]
push str.insert_into_favorite_values__d__s__s_1__d__d__1_0_0_0_0_0__
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x63c]
add esp, 0x1c
push eax
call fcn.004012d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4022f1
call fcn.00401340
push ebx
mov esi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
mov edx, dword [0x40851c]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push edx
call sub.sqlite3.dll_sqlite3_exec
mov ecx, dword [0x40851c]
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push 0
push 0x401180
push str.select__from_favorite_
push ecx
mov dword [0x408034], edi
call sub.sqlite3.dll_sqlite3_exec
add esp, 0x14
lea esi, [esp + 0x24]
call fcn.00403b10
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
inc edi
jmp 0x402200
mov edx, dword [0x40851c]
push edx
call sub.sqlite3.dll_sqlite3_close
add esp, 4
lea eax, [esp + 0x54]
mov dword [0x40851c], 0
push eax
call fcn.004026a0
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 0x40238a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xa44]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004043bc
mov esp, ebp
pop ebp
ret 0x10