Function at 0x4966e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520bbe
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x7c6ee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea edi, [ebx + 0x30]
mov ecx, edi
call dword [0x530608]
test eax, eax
jle 0x4967be
mov ecx, edi
xor esi, esi
call dword [0x530608]
test eax, eax
jle 0x496753
nop
push esi
mov ecx, edi
call dword [0x530604]
mov ecx, dword [eax]
test ecx, ecx
je 0x496746
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, edi
inc esi
call dword [0x530608]
cmp esi, eax
jl 0x496730
mov esi, dword [0x5304a8]
mov ecx, dword [edi]
mov dword [edi], esi
mov eax, dword [ecx]
or ebx, 0xffffffff
mov edx, dword [0x530610]
mov dword [ebp - 4], 0
test eax, eax
je 0x496784
cmp eax, ebx
je 0x496790
mov eax, ebx
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x496790
push ecx
call edx
mov edx, dword [0x530610]
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
je 0x4967ae
cmp eax, 0xffffffff
je 0x4967b4
lock xadd dword [esi], ebx
dec ebx
setne al
test al, al
jne 0x4967b4
push esi
call edx
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x496d17
push ecx
mov ecx, esp
call dword [0x530a18]
lea ecx, [ebp - 0x1c]
call dword [0x5307a8]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call dword [0x5309b8]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x14]
call dword [0x5307a8]
lea ecx, [ebp + 8]
call dword [0x5307a8]
mov eax, dword [ebx + 0x10]
mov byte [ebp - 4], 6
test eax, eax
jne 0x4968d6
cmp dword [0x7c824c], 1
mov ebx, dword [0x53076c]
push 0x1b
jne 0x49686c
push str.chipseries.cn_like____1__
call ebx
mov dword [ebp - 0x18], eax
add esp, 4
mov byte [ebp - 0x1c], 0x20
mov ecx, esp
mov byte [ebp - 4], 7
push dword [ebp - 0x1c]
call dword [0x5307b0]
push 0
push esi
mov esi, dword [0x530794]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x20]
jmp 0x4968ab
push str.chipseries.en_like____1__
call ebx
mov dword [ebp - 0x18], eax
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
mov byte [ebp - 4], 8
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
push esi
mov esi, dword [0x530794]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xb8
push str.SELECT_DISTINCT_nchipseries.id__nchipseries.cn__nchipseries.en_nFROM_nchipseries_nINNER_JOIN_chip_ON_chipseries.id__chip.ChipSeries_nWHERE_nchip.specdisp__1_nand__1_nORDER_BY_nchipseries.en_ASC
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
jmp 0x496b36
cmp eax, 1
jne 0x496969
mov ebx, dword [0x53076c]
push 0x16
cmp dword [0x7c824c], eax
jne 0x4968ff
push str.brand.cn_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
jmp 0x49690d
push str.brand.en_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
push esi
mov esi, dword [0x530794]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xfa
push str.SELECT_DISTINCT_brand.id__brand.cn__brand.en_FROM_cardat_INNER_JOIN_brand_ON_brand.id__cardat.brand____________________________WHERE_cardat.hide__0_AND__cardat.functype__2_OR_cardat.functype__5_OR_cardat.functype__6__AND__1_ORDER_BY_brand.en_ASC
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
jmp 0x496b36
cmp eax, 2
jne 0x4969fd
cmp dword [0x7c824c], 1
mov ebx, dword [0x53076c]
push 0x16
jne 0x496993
push str.brand.cn_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
jmp 0x4969a1
push str.brand.en_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
push esi
mov esi, dword [0x530794]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xca
push str.SELECT_DISTINCT_brand.id__brand.cn__brand.en_FROM_cardat_INNER_JOIN_brand_ON_brand.id__cardat.brand____________________________WHERE_cardat.hide__0_AND_cardat.functype__1_AND__1_ORDER_BY_brand.en_ASC
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
jmp 0x496b36
cmp eax, 3
jne 0x496aa7
cmp dword [0x7c824c], 1
mov ebx, dword [0x53076c]
push 0x37
jne 0x496a2a
push str._model.cn_like____1___or_model.keyword_like____2___
call ebx
add esp, 8
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x10
jmp 0x496a3b
push str._model.en_like____1___or_model.keyword_like____2___
call ebx
add esp, 8
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x11
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call dword [0x530790]
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x20]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xca
push str.SELECT_DISTINCT_model.id__model.cn__model.en_FROM_cardat_INNER_JOIN_model_ON_model.id__cardat.model____________________________WHERE_cardat.hide__0_AND_cardat.functype__3_AND__1_ORDER_BY_model.en_ASC
call ebx
mov dword [ebp - 0x18], eax
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
mov byte [ebp - 4], 0x12
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call dword [0x530794]
jmp 0x496b57
cmp eax, 4
jne 0x496b77
cmp dword [0x7c824c], 1
mov ebx, dword [0x53076c]
push 0x17
jne 0x496ad1
push str.module.cn_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x13
jmp 0x496adf
push str.module.en_like____1__
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x14
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
push esi
mov esi, dword [0x530794]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp + 8]
call dword [0x53063c]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xd1
push str.SELECT_DISTINCT_module.id__module.cn__module.en_FROM_cardat_INNER_JOIN_module_ON_module.id__cardat.module____________________________WHERE_cardat.hide__0_AND_cardat.functype__4_AND__1_ORDER_BY_module.en_ASC
call ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x15
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
push dword [ebp - 0x20]
call dword [0x5307b0]
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp - 0x14]
call dword [0x53063c]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call dword [0x5309c8]
lea ecx, [ebp - 0x10]
test al, al
je 0x496c99
mov ebx, dword [0x5309d4]
call ebx
test al, al
je 0x496cfc
nop
push 0x28
call fcn.0050ae88
add esp, 4
mov dword [ebp - 0x28], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.004a7830
mov esi, eax
mov byte [ebp - 4], 6
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], esi
push eax
lea ecx, [ebp - 0x10]
call dword [0x5309cc]
push 0
mov ecx, eax
mov byte [ebp - 4], 0x17
call dword [0x530734]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
call dword [0x530740]
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
call dword [0x5309cc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x18
push ecx
mov ecx, eax
call dword [0x53072c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1a
call dword [0x530740]
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10]
call dword [0x5309cc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, eax
call dword [0x53072c]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1d
call dword [0x530740]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004a79d0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004a79b0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004a79c0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00427a00
lea ecx, [ebp - 0x18]
call dword [0x5307a0]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea ecx, [ebp - 0x10]
call ebx
test al, al
jne 0x496ba0
jmp 0x496cfc
lea eax, [ebp - 0x5c]
push eax
call dword [0x5309c4]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1e
push ecx
mov ecx, eax
call dword [0x530a1c]
mov esi, eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x1f
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call dword [0x5307bc]
mov ecx, eax
call dword [0x5307b8]
push esi
mov ecx, eax
mov byte [ebp - 4], 0x20
call dword [0x530700]
lea ecx, [ebp - 0x24]
call dword [0x530710]
lea ecx, [ebp - 0x20]
call dword [0x5307a0]
lea ecx, [ebp - 0x5c]
call dword [0x5309b4]
lea ecx, [ebp + 8]
call dword [0x5307a0]
lea ecx, [ebp - 0x14]
call dword [0x5307a0]
lea ecx, [ebp - 0x10]
call dword [0x5309c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4