Function at 0x426fc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.004340e0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
mov eax, edx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
push dword [eax + 0x18]
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2028], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d440
mov eax, dword [eax]
test eax, eax
je 0x427105
cmp dword [eax + 4], 1
jne 0x427105
mov eax, dword [esi]
cmp eax, 0x178ce
je 0x427105
cmp eax, 0x174ad
je 0x427105
cmp eax, dword [edi + 0x6c]
je 0x427105
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push 0xffffffffffffffff
push str.SELECT_KartHeadRefitItemID_KartTailRefitItemID_KartFlankRefitItemID_KartTireRefitItemID_ShapeSuitID_FROM_KartRefit_WHERE_Uin____and_KartID____
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x4270f2
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [edi + 0x18]
push 1
push dword [ebp - 4]
call esi
push dword [edi + 0x30]
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x4270f2
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push 0
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call esi
push 2
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call esi
push 3
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
call esi
push 4
push dword [ebp - 4]
mov dword [ebp - 0x24], eax
call esi
add esp, 0x28
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2024], ax
lea esi, [ebp - 0x2022]
movzx eax, di
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], 0
test eax, eax
je 0x42719f
nop dword [eax]
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 2]
mov word [esi], ax
mov eax, dword [ebp + 8]
push dword [ecx + eax*8]
call ebx
push 1
mov dword [edi], eax
call ebx
push 0xffffffffffffffff
mov dword [edi + 4], eax
call ebx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 1
mov al, byte [ecx + eax*8 + 4]
mov byte [edi + 0xc], al
call ebx
push 0
mov dword [edi + 0xd], eax
call ebx
mov dword [edi + 0x11], eax
add edi, 0x15
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
sub edi, esi
add edi, 2
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
add esi, edi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x10]
jb 0x427130
push dword [ebp - 8]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov byte [esi], 0
call edi
mov word [esi + 1], ax
add esi, 3
mov eax, dword [ebp - 8]
movzx eax, ax
mov dword [ebp + 8], eax
test eax, eax
je 0x4272e9
push 0
call edi
mov word [esi], ax
lea edi, [esi + 2]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
call ebx
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call ebx
push 0
mov dword [edi + 4], eax
call ebx
push 0
mov dword [edi + 8], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xe], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x12], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x16], ax
call ebx
push dword [ebp - 0x18]
mov dword [edi + 0x18], eax
call ebx
push dword [ebp - 0x1c]
mov dword [edi + 0x1c], eax
call ebx
push dword [ebp - 0x20]
mov dword [edi + 0x20], eax
call ebx
push dword [ebp - 0x24]
mov dword [edi + 0x24], eax
call ebx
push 0
mov dword [edi + 0x28], eax
call ebx
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x32], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x36], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0xc]
mov word [edi + 0x3a], ax
call ebx
mov dword [edi + 0x3c], eax
push 0x457
mov byte [edi + 0x40], 0xa
call ebx
push dword [ebp - 0xc]
mov dword [edi + 0x41], eax
add edi, 0x45
call ebx
mov dword [edi], eax
sub edi, esi
add edi, 4
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
add esi, edi
sub dword [ebp + 8], 1
mov edi, dword [sym.imp.WS2_32.dll_htons]
jne 0x4271c5
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, 0x20f
push 2
mov byte [esi], 0
inc esi
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x34]
push 2
push eax
lea eax, [ebp - 0x2028]
mov byte [esi], 0
sub esi, eax
inc esi
push esi
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret