Function at 0x43e3b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00463070
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
push 0x7d0
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov dword [ebp - 4], 0
call fcn.004622fd
mov ecx, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 4
mov esi, eax
cmp di, 7
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_step]
mov dword [ebp - 0x14], esi
jne 0x43e41d
cmp dword [ebp + 0x10], ebx
je 0x43e48e
push ebx
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.UPDATE_Item_SET_OtherAttribute___WHERE_Uin__AND_ItemID__
push dword [0x4d1304]
call ecx
add esp, 0x14
test eax, eax
jne 0x43e478
push 1
jmp 0x43e446
cmp word [ebp - 0xc], 2
jne 0x43e48e
cmp dword [ebp + 0x10], ebx
je 0x43e48e
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.UPDATE_Item_SET_OtherAttribute___WHERE_Uin__AND_ItemID__
push dword [0x4d1304]
call ecx
add esp, 0x14
test eax, eax
jne 0x43e478
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
push 2
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp + 0x10]
push 3
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call edi
add esp, 0x28
push dword [ebp - 4]
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_finalize]
call eax
mov ecx, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 4
mov dword [ebp - 4], ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xffffffffffffffff
push str.SELECT_ItemID_FROM_Item_WHERE_Uin____and_OtherAttribute1_
push dword [eax + 0x1a0]
call ecx
add esp, 0x14
test eax, eax
jne 0x43e4ec
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call edi
add esp, 0x10
cmp eax, 0x64
jne 0x43e4ec
nop dword [eax + eax]
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
mov dword [esi + ebx*4], eax
inc ebx
push dword [ebp - 4]
call edi
add esp, 0xc
cmp eax, 0x64
je 0x43e4d0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov esi, dword [sym.imp.WS2_32.dll_htons]
add esp, 4
mov dword [ebp - 4], 0
push 0
call esi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x2014], ax
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
call edi
push dword [ebp - 0xc]
mov dword [ebp - 0x2012], eax
call esi
push dword [ebp + 8]
mov word [ebp - 0x200e], ax
call esi
push dword [ebp + 0xc]
mov word [ebp - 0x200c], ax
call esi
push 1
mov word [ebp - 0x200a], ax
call edi
push 0
mov dword [ebp - 0x2008], eax
call esi
push 6
mov word [ebp - 0x2004], ax
call edi
lea esi, [ebp - 0x1ffe]
mov dword [ebp - 0x2002], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 6
jmp 0x43e586
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esi], ax
call edi
mov dword [esi + 2], eax
xor edi, edi
add esi, 6
test ebx, ebx
je 0x43e5b6
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, ebx
jb 0x43e5a0
mov edi, dword [ebp - 0xc]
mov eax, esi
sub eax, edi
push eax
call dword [sym.imp.WS2_32.dll_htons]
sub dword [ebp - 0x10], 1
mov word [edi], ax
mov dword [ebp - 0xc], esi
jne 0x43e580
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0
call ebx
push 0x1f4
mov dword [esi], eax
call ebx
mov dword [esi + 4], eax
add esi, 8
push 0
call ebx
mov dword [esi], eax
lea eax, [ebp - 0x2004]
sub esi, eax
add esi, 4
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2004]
push 0
add esi, eax
call ebx
mov dword [esi], eax
add esi, 4
push 0
call ebx
mov ecx, dword [ebp - 8]
mov edx, 0x6efc
push 1
mov dword [esi], eax
push 1
movzx eax, word [ecx + 0x10]
push eax
push 1
push eax
lea eax, [ebp - 0x2014]
sub esi, eax
add esi, 4
push esi
push eax
call fcn.00437370
push dword [ebp - 0x14]
call fcn.00462046
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret