Function at 0x450060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00463070
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, ecx
push edi
mov edi, edx
mov eax, dword [edi]
push eax
call esi
push dword [edi + 4]
call esi
push dword [edi + 8]
call esi
mov edi, eax
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
call fcn.0042b840
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov edx, dword [eax]
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
test edx, edx
je 0x4501ab
cmp dword [edx + 4], 1
jne 0x4501ab
push 0
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push str.DELETE_FROM_KartRefit__WHERE_Uin__AND_KartID____
push dword [0x4d1304]
call eax
add esp, 0x14
test eax, eax
jne 0x4500f7
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call esi
push edi
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push str.DELETE_FROM_KartStone_WHERE_ID_IN__SELECT_ID_FROM_KartStoneGroove_WHERE_Uin____AND_KartID_____
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x18
test eax, eax
jne 0x450145
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call esi
push edi
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push str.DELETE_FROM_KartStoneGroove_WHERE_Uin____AND_KartID____
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x18
test eax, eax
jne 0x450193
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call esi
push edi
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 4
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
push str.DELETE_FROM_Item__WHERE_Uin__AND__ItemID____
push dword [0x4d1304]
call eax
add esp, 0x14
test eax, eax
jne 0x4501e7
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call esi
push edi
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
jmp 0x450201
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
push eax
push 0x4b6e7c
call fcn.00413de0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebx + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x2008], ax
call esi
push edi
mov dword [ebp - 0x2006], eax
call esi
push 1
push 1
mov dword [ebp - 0x2002], eax
mov edx, 0x105
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
push 1
push eax
lea eax, [ebp - 0x2008]
mov byte [ebp - 0x1ffe], 0
push 0xb
push eax
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret