Function at 0x4288e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004340e0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, edx
mov dword [ebp - 0x24], ecx
push edi
mov eax, dword [esi]
push eax
call ebx
mov eax, dword [esi + 4]
push eax
call ebx
mov eax, dword [esi + 8]
add esi, 0xc
push eax
call ebx
movzx edi, byte [esi]
add edi, esi
mov dword [ebp - 0x28], eax
mov ecx, dword [edi + 1]
push ecx
call ebx
mov ecx, dword [edi + 5]
push ecx
mov dword [ebp - 0x1c], eax
call ebx
movzx ecx, word [edi + 9]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
push ecx
call esi
movzx eax, ax
mov dword [ebp - 0x20], eax
movzx eax, word [edi + 0xb]
push eax
call esi
xor esi, esi
mov dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], esi
push eax
push 0xffffffffffffffff
push str.SELECT_ItemNum_from_Item_WHERE_Uin__AND_ItemID__
push dword [0x4918d8]
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov byte [ebp - 9], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov ebx, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jne 0x4289b9
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x1c]
push 2
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x4289b9
push esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0xffffffffffffffff
push str.SELECT_WWeight_SpeedWeight_JetWeight_SJetWeight_AccuWeight_FROM_KartRefit_WHERE_Uin__AND_KartID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x18
test eax, eax
jne 0x428a6b
push dword [ebx + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x28]
push 2
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x428a6b
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 1
push dword [ebp - 4]
movzx esi, ax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 2
push dword [ebp - 4]
movzx eax, ax
mov dword [ebp - 0x10], eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 3
push dword [ebp - 4]
movzx eax, ax
mov dword [ebp - 0x14], eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 4
push dword [ebp - 4]
movzx eax, ax
mov dword [ebp - 0x18], eax
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
movzx eax, ax
add esp, 0x28
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
cmp word [ebp - 0x20], 0
jle 0x428b9a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
dec dword [ebp - 0x20]
movzx ebx, ax
mov dword [ebp - 0x38], ebx
movzx ebx, dx
mov dword [ebp - 0x34], ebx
movzx ebx, cx
mov dword [ebp - 0x30], ebx
movzx ebx, si
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x24]
test edi, edi
jle 0x428add
mov eax, dword [ebp - 0x1c]
add eax, 0xffffcfa8
cmp eax, 0xe
ja case.0x428ac1.12381
jmp dword [eax*4 + 0x428e04]
inc edx
mov dword [ebp - 0x18], edx
cmp dx, 0x1d
jg 0x428d42
mov eax, dword [ebp - 8]
dec edi
inc byte [ebp - 9]
cmp word [ebp - 0x20], 0
jg 0x428a92
jmp 0x428b9a
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp ax, 0x1d
jle 0x428ad9
mov dword [ebp - 8], 0x1d
jmp 0x428b34
inc ecx
mov dword [ebp - 0x14], ecx
cmp cx, 0x1d
jle case.0x428ac1.12381
mov dword [ebp - 0x14], 0x1d
jmp 0x428b34
inc esi
cmp si, 0x1d
jle case.0x428ac1.12381
mov esi, 0x1d
jmp 0x428b34
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp ax, 0x1d
jle case.0x428ac1.12381
mov dword [ebp - 0x10], 0x1d
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movq xmm0, qword [0x482f4c]
mov edx, 0x6e
mov word [ebp - 0x2038], ax
mov eax, dword [0x482f54]
push ecx
mov dword [ebp - 0x202d], eax
mov ecx, ebx
mov al, byte [0x482f58]
mov byte [ebp - 0x2029], al
movzx eax, word [ebx + 0x10]
push 1
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
lea eax, [ebp - 0x2038]
mov byte [ebp - 0x2036], 0xd
push 0x10
push eax
movq qword [ebp - 0x2035], xmm0
call fcn.004202d0
add esp, 0x1c
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.UPDATE_KartRefit_SET_RefitCoutRefitCout1__SJetWeight__AccuWeight__JetWeight__WWeight__SpeedWeight___WHERE_Uin__AND_KartID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x428c38
mov eax, dword [ebp - 0x18]
cwde
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [ebp - 8]
cwde
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [ebp - 0x14]
cwde
push eax
push 3
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
movsx eax, si
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [ebp - 0x10]
cwde
push eax
push 5
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebx + 0x18]
push 6
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0x48
push dword [ebp - 0x28]
push 7
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov edx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.00428e40
add esp, 0x18
lea eax, [ebp - 4]
push 0
push eax
push 0xffffffffffffffff
test edi, edi
jg 0x428d4e
push str.DELETE_FROM_Item__WHERE_Uin__AND_ItemID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x428d94
push dword [ebx + 0x18]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 1
push dword [ebp - 4]
call esi
push dword [ebp - 0x1c]
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
jmp 0x428d94
add edx, 2
jmp 0x428ac9
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
cmp ax, 0x1d
jg 0x428af6
jmp 0x428ad9
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp cx, 0x1d
jg 0x428b09
jmp case.0x428ac1.12381
add esi, 2
cmp si, 0x1d
jg 0x428b19
jmp case.0x428ac1.12381
mov eax, dword [ebp - 0x10]
add eax, 2
movzx ecx, ax
cmp ax, 0x1d
jg 0x428b2d
mov eax, dword [ebp - 0x2c]
movzx esi, ax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
movzx ecx, ax
mov eax, dword [ebp - 0x34]
movzx edx, ax
mov eax, dword [ebp - 0x38]
movzx eax, ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], eax
jmp 0x428ad9
mov dword [ebp - 0x18], 0x1d
jmp 0x428b34
push str.UPDATE_Item_SET_ItemNum__WHERE_Uin____AND_ItemID____
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x428d94
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push edi
push 1
push dword [ebp - 4]
call esi
push dword [ebx + 0x18]
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 0x1c]
push 3
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x28
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
add esp, 4
mov dword [ebp - 4], 0
push dword [ebx + 0x18]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x2038], eax
call esi
mov dword [ebp - 0x2034], eax
movsx eax, byte [ebp - 9]
push eax
call esi
push edi
mov dword [ebp - 0x2030], eax
call esi
push ecx
push 2
mov dword [ebp - 0x202c], eax
mov edx, 0x22c
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
push 1
push eax
lea eax, [ebp - 0x2038]
push 0x10
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret