Function at 0x41bb0e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x20004
push 0x160108bb
push 0x52010001
push 1
mov eax, 1
mov ebx, 0x476bf0
call fcn.004286f6
add esp, 0x10
cmp dword [ebp + 0xc], 1
jne 0x41bbfa
push reloc.WS2_32.dll_connect
push 0
push str.SET_NAMES_gbk
push 0x80000301
push 0
push dword [0x5c1f84]
push 2
mov eax, 2
mov ebx, 0x47c430
call fcn.004286f6
add esp, 0x1c
push 0x4c1383
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SELECT__FROM_wz_itemdata_WHERE_itemid_like__
mov ecx, 3
call fcn.0040110c
add esp, 0xc
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41bbc5
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push dword [0x5c1f84]
push 2
mov eax, 2
mov ebx, 0x47c430
call fcn.004286f6
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41bbfa
push ebx
call fcn.004286de
add esp, 4
cmp dword [ebp + 0xc], 2
jne 0x41bc9b
push reloc.WS2_32.dll_connect
push 0
push str.SET_NAMES_gbk
push 0x80000301
push 0
push dword [0x5c1f84]
push 2
mov eax, 2
mov ebx, 0x47c430
call fcn.004286f6
add esp, 0x1c
push 0x4c1383
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SELECT__FROM_wz_itemdata_WHERE_name_like__
mov ecx, 3
call fcn.0040110c
add esp, 0xc
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41bc66
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push dword [0x5c1f84]
push 2
mov eax, 2
mov ebx, 0x47c430
call fcn.004286f6
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41bc9b
push ebx
call fcn.004286de
add esp, 4
push 0x80000301
push 0
push dword [0x5c1f84]
push 1
mov eax, 2
mov ebx, 0x47c4f0
call fcn.004286f6
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov eax, 2
mov ebx, 0x47d120
call fcn.004286f6
add esp, 0x10
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x41bf76
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x429300
call fcn.004286e4
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, 0xc
call fcn.00401652
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41bd2c
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push 0
push 0x20004
push 0x160108bb
push 0x52010001
push 7
mov eax, 1
mov ebx, 0x476b00
call fcn.004286f6
add esp, 0x58
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41bd72
push ebx
call fcn.004286de
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
lea eax, [ebp - 0x10]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.itemid
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov eax, 2
mov ebx, 0x47c590
call fcn.004286f6
add esp, 0x28
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x41bdc3
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 8]
push 0x20004
push 0x160108bb
push 0x52010001
push 4
mov eax, 1
mov ebx, 0x476ab0
call fcn.004286f6
add esp, 0x34
push reloc.WS2_32.dll_connect
push 0
lea eax, [ebp - 0x10]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.name
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov eax, 2
mov ebx, 0x47c590
call fcn.004286f6
add esp, 0x28
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x41be4b
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 8]
push 0x20004
push 0x160108bb
push 0x52010001
push 4
mov eax, 1
mov ebx, 0x476ab0
call fcn.004286f6
add esp, 0x34
push reloc.WS2_32.dll_connect
push 0
lea eax, [ebp - 0x10]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.desc
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov eax, 2
mov ebx, 0x47c590
call fcn.004286f6
add esp, 0x28
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x41bed3
mov eax, 0x4c1200
push eax
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 8]
push 0x20004
push 0x160108bb
push 0x52010001
push 4
mov eax, 1
mov ebx, 0x476ab0
call fcn.004286f6
add esp, 0x34
push reloc.WS2_32.dll_connect
push 0
push 0x4e100e
push 0x80000301
push 0
push 0
push 0x20002
push 0x16010002
push 0x52010001
push 3
mov eax, 1
mov ebx, 0x476730
call fcn.004286f6
add esp, 0x28
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov eax, 2
mov ebx, 0x47d160
call fcn.004286f6
add esp, 0x10
pop eax
pop ecx
jmp 0x41bce5
add esp, 8
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41bf89
push ebx
call fcn.004286de
add esp, 4
mov esp, ebp
pop ebp
ret 8