Function at 0x435920
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a25e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3050
call fcn.00463070
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x44], edi
mov eax, dword [edx]
add edx, 4
mov dword [ebp - 0x18], edx
push eax
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x18], ecx
push eax
call esi
mov esi, dword [ebp - 0x18]
movzx eax, word [esi]
add esi, 2
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.SELECT_KeyValue__KeyIndex__KeyType_FROM_CdkInfo_WHERE_KeyValue___
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x435c2e
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
cmp eax, 0x64
jne 0x435c23
push 0
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_column_text]
mov dword [ebp - 0x1c], eax
push 1
push dword [ebp - 0x14]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
call esi
mov dword [ebp - 0x18], eax
push 2
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x24], 0
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.SELECT_1_FROM_CdkRecord_Where_Uin__and_KeyIndex__
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x30
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
test eax, eax
jne 0x435a62
push dword [edi + 0x18]
push 1
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
mov ecx, dword [ebp - 0x24]
movzx ecx, cl
mov edx, 1
cmp eax, 0x64
cmove ecx, edx
mov dword [ebp - 0x24], ecx
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0x24], 0
je 0x435adb
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4b9b40]
mov byte [ebp - 0x305e], 0x10
mov word [ebp - 0x3060], ax
push 1
push 1
movzx eax, word [edi + 0x10]
push eax
push 2
movzx eax, word [edi + 0x34]
push eax
push 0x13
movups xmmword [ebp - 0x305d], xmm0
mov edx, 0x6e
lea eax, [ebp - 0x3060]
push eax
mov ecx, edi
call fcn.00437370
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.004354b0
test al, al
je 0x435bbe
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_CdkRecord_VALUES_______
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x435b2d
push dword [edi + 0x18]
push 1
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x2c], 1
jne 0x435b75
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.DELETE_FROM_CdkInfo__WHERE_KeyIndex__
push dword [0x4d1308]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x24
push dword [ebp - 0x1c]
push dword [edi + 0x18]
push str.Uin:_d_CDK:_s
call fcn.00413de0
add esp, 0xc
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x3060], eax
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x305c], ax
movzx eax, word [edi + 0x10]
push 1
push 1
push eax
push 1
push eax
push 6
mov edx, 0x6093
jmp 0x435ab9
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi + 0x18]
push str.Uin:_d_CDK:_s_KeyIndex:_d
call fcn.00413de0
add esp, 0x10
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3060], ax
mov byte [ebp - 0x305e], 0x16
movups xmm0, xmmword [0x4b9bdc]
mov eax, dword [0x4b9bec]
mov dword [ebp - 0x304d], eax
mov ax, word [0x4b9bf0]
mov word [ebp - 0x3049], ax
push 1
push 1
movzx eax, word [edi + 0x10]
push eax
push 2
movzx eax, word [edi + 0x34]
push eax
push 0x19
jmp 0x435aad
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
jmp 0x435c38
push 0x4b9bf4
call fcn.00413de0
add esp, 4
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4d2bc8
call fcn.00427120
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x435c68
mov eax, dword [edi + 0x18]
cmp eax, dword [ecx + 0x10]
jl 0x435c68
mov al, 1
jmp 0x435c6a
xor al, al
test al, al
jne 0x435c85
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4b9c08]
jmp 0x435a8d
mov dword [ebp - 4], 0
wait
push 0x4b9c1c
push esi
call fcn.004818a5
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x4361ef
lea edx, [ebp - 0x50]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
mov byte [ecx + edx], al
lea ecx, [ecx + 1]
test al, al
jne 0x435cb0
push 0x4b9c1c
push 0
call fcn.004818a5
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x4361ef
lea edx, [ebp - 0x78]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
mov byte [ecx + edx], al
lea ecx, [ecx + 1]
test al, al
jne 0x435ce0
push 0x4b9c1c
push 0
call fcn.004818a5
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x4361ef
lea edx, [ebp - 0x84]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
mov byte [ecx + edx], al
lea ecx, [ecx + 1]
test al, al
jne 0x435d10
push 0x4b9c1c
push 0
call fcn.004818a5
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x4361ef
lea edx, [ebp - 0x90]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
mov byte [ecx + edx], al
lea ecx, [ecx + 1]
test al, al
jne 0x435d40
push 0x4b9c1c
push 0
call fcn.004818a5
add esp, 8
test eax, eax
je 0x435d7d
mov edx, 0x4b9c20
mov ecx, edi
call fcn.00457740
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x78]
push eax
call fcn.00481e0a
fstp qword [ebp - 0x28]
lea eax, [ebp - 0x84]
push eax
call fcn.00481e0a
fstp qword [ebp - 0x3c]
lea eax, [ebp - 0x90]
push eax
call fcn.00481e0a
add esp, 0xc
fstp qword [ebp - 0x30]
cvttsd2si eax, qword [ebp - 0x30]
or ecx, 0xffffffff
cmp eax, 1
cmove eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, 0x4b9c58
lea eax, [ebp - 0x50]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x435de3
test dl, dl
je 0x435ddf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x435de3
add eax, 2
add ecx, 2
test dl, dl
jne 0x435dc3
xor eax, eax
jmp 0x435de8
sbb eax, eax
or eax, 1
test eax, eax
je 0x435fd0
lea eax, [ebp - 0x50]
push eax
call fcn.00481e0a
add esp, 4
fstp qword [ebp - 0x20]
cvttsd2si ecx, qword [ebp - 0x20]
call fcn.0045aff0
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x435e30
mov edx, 0x4b9c5c
mov ecx, edi
call fcn.00457740
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x18]
cvttsd2si eax, qword [ebp - 0x3c]
push eax
cvttsd2si eax, qword [ebp - 0x28]
push eax
cvttsd2si edx, qword [ebp - 0x20]
mov ecx, esi
call fcn.00412360
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.SELECT_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute_ItemType_FROM_Item__WHERE_Uin__AND_ItemID__
push dword [esi + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x24
test eax, eax
jne 0x435f0e
cvttsd2si eax, qword [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x14]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
call esi
cvttsd2si eax, qword [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x435f79
cvttsd2si eax, qword [ebp - 0x28]
mov dword [ebp - 0x14c], eax
push 0
push dword [ebp - 0x14]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
call esi
mov dword [ebp - 0x148], eax
push 1
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x144], eax
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
setne byte [ebp - 0x140]
push 3
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x13c], eax
push 4
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x138], eax
push 5
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov dword [ebp - 0x134], eax
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x14], 0
cvttsd2si eax, qword [ebp - 0x20]
push dword [ebp - 0x18]
cmp dword [edi + 0x18], eax
cvttsd2si eax, qword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14c]
je 0x435faa
sub esp, 8
push eax
mov ecx, esi
call fcn.00448fe0
lea eax, [ebp - 0x14c]
push eax
mov edx, 1
mov ecx, esi
call fcn.0044ff30
add esp, 0x18
mov edx, 0x4b9d00
mov ecx, edi
call fcn.00457740
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x4b9cec
mov ecx, edi
call fcn.00457740
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x14], 0
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 8
push eax
mov ecx, edi
call fcn.00448fe0
lea eax, [ebp - 0x14c]
push eax
mov edx, 1
mov ecx, edi
call fcn.0044ff30
add esp, 0x18
jmp 0x4361d6
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1060]
call fcn.004122d0
xor esi, esi
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp - 0x2c]
jge 0x4361ca
mov esi, dword [ebp + esi*4 - 0x1060]
cmp esi, dword [edi + 0x18]
je 0x43612b
mov ecx, esi
call fcn.0045aff0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43612b
push 0
push dword [ebp - 0x18]
cvttsd2si ecx, qword [ebp - 0x3c]
push ecx
cvttsd2si ecx, qword [ebp - 0x28]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00412360
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.SELECT_ItemNum_AvailPeriod_Status_ObtainTime_OtherAttribute_ItemType_FROM_Item__WHERE_Uin__AND_ItemID__
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x24
test eax, eax
jne 0x4360e6
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
cvttsd2si eax, qword [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x436134
cvttsd2si eax, qword [ebp - 0x28]
mov dword [ebp - 0x10ec], eax
push 0
push dword [ebp - 0x14]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
call esi
mov dword [ebp - 0x10e8], eax
push 1
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x10e4], eax
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
setne byte [ebp - 0x10e0]
push 3
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x10dc], eax
push 4
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x10d8], eax
push 5
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov dword [ebp - 0x10d4], eax
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10ec]
push eax
mov edx, 1
mov ecx, dword [ebp - 0x1c]
call fcn.0044ff30
add esp, 8
push dword [ebp - 0x18]
cvttsd2si eax, qword [ebp - 0x3c]
push eax
sub esp, 8
lea eax, [ebp - 0x10ec]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00448fe0
add esp, 0x14
mov esi, dword [ebp - 0x34]
inc esi
jmp 0x435fe0
mov edx, esi
lea ecx, [ebp - 0xa8]
call fcn.0042c480
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa8]
push eax
mov edx, str.Uin
lea ecx, [ebp - 0xc0]
call fcn.00443840
mov byte [ebp - 4], 2
push 0x4b9d10
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.004437b0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.004099e0
lea edx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0xf
cmova edx, dword [ebp - 0x6c]
mov ecx, edi
call fcn.00457740
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004099e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004099e0
mov esi, dword [ebp - 0x34]
inc esi
jmp 0x435fe0
mov edx, 0x4b9d34
mov ecx, edi
call fcn.00457740
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x4b9c3c
mov ecx, edi
call fcn.00457740
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret