Function at 0x43ea50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
mov esi, edx
mov dword [esp + 0x20], ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
xorps xmm0, xmm0
mov byte [esp + 0xa], 0
mov eax, dword [esi]
push eax
movaps xmmword [esp + 0x34], xmm0
call edi
mov ecx, dword [esi + 4]
push ecx
mov dword [esp + 0x30], eax
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
mov dword [esp + 0x18], eax
mov al, byte [esi + 0xc]
add esi, 0xd
cmp al, 4
ja 0x43ef58
movzx eax, al
xor edi, edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x43eadd
mov eax, dword [esi]
add esi, 4
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov cl, byte [esp + 0xa]
inc cl
mov dword [esp + edi*4 + 0x30], eax
cmp eax, 1
movzx edx, cl
movzx ecx, byte [esp + 0xa]
cmovbe edx, ecx
inc edi
mov al, dl
mov byte [esp + 0xa], al
cmp edi, dword [esp + 0x28]
jb 0x43eaa8
mov byte [esp + 0xa], al
push dword [esi]
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
mov dword [esp + 0x14], 0
xor al, al
mov dword [esp + 0x28], 0
cmp dword [esp + 0x18], 0x2724
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0xb], al
jb 0x43ef58
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push str.SELECT_1_FROM_KartRefit_WHERE_Uin____AND_KartID____
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0x14
test eax, eax
jne 0x43eb9a
push dword [esp + 0x2c]
push 1
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x18]
push 2
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0xc], 0
cmp esi, 0x64
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
sete al
mov byte [esp + 0xb], al
jmp 0x43eb9e
mov al, byte [esp + 0xb]
cmp byte [esp + 0xa], 1
jb 0x43ebb4
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
jmp 0x43edab
cmp edi, 0x1f180
ja 0x43ec4e
je 0x43ebd6
cmp edi, 0x1d5b6
je 0x43ebd6
cmp edi, 0x1f17f
jne 0x43ec62
mov dword [esp + 0x28], edi
test al, al
je 0x43ed07
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push str.SELECT_LegendSuitLevelChoice_FROM_KartRefit_WHERE_Uin__AND_KartID__
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
je 0x43ec77
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
push str._RequestSaveShapeRefitNew2_
push 0x4d0308
call fcn.0040ae50
mov esi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
add esp, 0xc
push eax
push esi
call fcn.0040ae50
push eax
call fcn.00412d50
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0x2046b
je 0x43ebd6
cmp edi, 0x2160b
je 0x43ebd6
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
jmp 0x43ed2d
push dword [esp + 0x2c]
push 1
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x18]
push 2
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x43ecf0
push 0
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, eax
call fcn.0042c5b0
mov esi, eax
mov ecx, edi
mov eax, 0xa
test esi, esi
mov edx, esi
cmove edx, eax
call fcn.0042c690
mov edi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov ecx, 0x780
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
cmove eax, ecx
mov dword [esp + 0x14], eax
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0xc], 0
jmp 0x43ed1d
mov edx, 0xa
mov ecx, edi
call fcn.0042c690
mov edi, eax
mov dword [esp + 0x14], 0x780
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0xa
cmp edi, 0x1fdeb
ja 0x43ed65
je 0x43ed5b
cmp edi, 0x1e279
je 0x43ed51
cmp edi, 0x1ed93
jne 0x43ed73
mov dword [esp + 0x10], 0x1f1cd
jmp 0x43ed8f
mov dword [esp + 0x10], 0x1e166
jmp 0x43ed8f
mov dword [esp + 0x10], 0x1fef0
jmp 0x43ed8f
mov eax, edi
sub eax, 0x20a33
je 0x43ed87
sub eax, 0x28
je 0x43ed7d
mov dword [esp + 0x10], 0
jmp 0x43edab
mov dword [esp + 0x10], 0x20a5e
jmp 0x43ed8f
mov dword [esp + 0x10], 0x20a36
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 5
mov dword [esp + 0x1c], 5
cmp byte [esp + 0xb], 0
jne 0x43ee13
push 0
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_KartRefit__Uin_KartID__VALUES_______
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x43edfe
push dword [esp + 0x2c]
push 1
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x18]
push 2
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0xc], 0
push 0
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push str.UPDATE_KartRefit_SET_KartHeadRefitItemID___KartTailRefitItemID___KartFlankRefitItemID___KartTireRefitItemID___ShapeSuitID___LegendSuitLevel___LegendSuitLevelChoice___ShapeLegendSuitID___SkinSuitID__WHERE_Uin__AND_KartID__
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x43ef1c
push dword [esp + 0x30]
push 1
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x34]
push 2
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x38]
push 3
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x3c]
push 4
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 0x1e278
je 0x43eea6
cmp eax, 0x1ed89
je 0x43eea6
cmp eax, 0x1fdea
je 0x43eea6
cmp eax, 0x20a5a
je 0x43eea6
push edi
push 5
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x1c]
jmp 0x43eeb9
push dword [esp + 0x10]
push 5
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x20]
push 6
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x14]
push 7
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x28]
push 8
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x10]
push 9
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x2c]
push 0xa
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0x18]
push 0xb
push dword [esp + 0x14]
call esi
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push dword [esp + 0xc]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [esp + 0x28]
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, eax
mov edx, esi
mov dword [esp + 0xc], 0
push edi
mov dword [eax + 0x70], edi
call fcn.0043e660
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, edi
push esi
call fcn.00442400
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret