Function at 0x496d30
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x520d09
mov eax, dword fs:[0]
push eax
sub esp, 0x60
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 edi, ecx
mov dword [ebp + 0x50], edi
lea ecx, [edi + 0x34]
call dword [0x530608]
test eax, eax
jle 0x496e0e
lea ecx, [edi + 0x34]
xor esi, esi
call dword [0x530608]
test eax, eax
jle 0x496da7
push esi
lea ecx, [edi + 0x34]
call dword [0x530604]
mov ecx, dword [eax]
test ecx, ecx
je 0x496d99
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
lea ecx, [edi + 0x34]
inc esi
call dword [0x530608]
cmp esi, eax
jl 0x496d82
mov esi, dword [0x5304a8]
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x34], esi
mov eax, dword [ecx]
or edi, 0xffffffff
mov ebx, dword [0x530610]
mov dword [ebp - 4], 0
test eax, eax
je 0x496dda
cmp eax, edi
je 0x496de0
mov eax, edi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x496de0
push ecx
call ebx
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
je 0x496dfe
cmp eax, 0xffffffff
je 0x496e04
lock xadd dword [esi], edi
dec edi
setne al
test al, al
jne 0x496e04
push esi
call ebx
add esp, 4
mov edi, dword [ebp + 0x50]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x78]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4973eb
push ecx
mov ecx, esp
call dword [0x530a18]
lea ecx, [ebp + 0x6c]
call dword [0x5307a8]
push eax
lea ecx, [ebp + 0x64]
mov dword [ebp - 4], 2
call dword [0x5309b8]
lea ecx, [ebp + 0x6c]
call dword [0x5307a0]
lea ecx, [ebp + 0x58]
call dword [0x5307a8]
lea ecx, [ebp + 0x78]
call dword [0x5307a8]
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 6
test eax, eax
jne 0x496f15
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
push 0x35
jne 0x496e8e
push str._chip.cn_like____1___or_chip.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 7
jmp 0x496e9f
push str._chip.en_like____1___or_chip.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 8
push esi
push esi
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x78]
call dword [0x53063c]
lea ecx, [ebp + 0x60]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0x7f
push str.SELECT_DISTINCT_nchip.id__nchip.cn__nchip.en__nchip.funcid__nchip.Mask_nFROM_nchip_nWHERE_nchip.specdisp__1_nand__1_nORDER_BY_nchip.en_ASC
call edi
mov dword [ebp + 0x6c], eax
add esp, 4
mov byte [ebp + 0x60], 0x20
mov ecx, esp
mov byte [ebp - 4], 9
push dword [ebp + 0x60]
call dword [0x5307b0]
push 0
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530794]
push eax
lea ecx, [ebp + 0x58]
call dword [0x53063c]
lea ecx, [ebp + 0x68]
jmp 0x49714b
cmp eax, 1
jne 0x496f95
mov edi, dword [0x53076c]
push 0x37
cmp dword [0x7c824c], eax
jne 0x496f3d
push str._model.cn_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xa
jmp 0x496f4e
push str._model.en_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xb
push esi
push esi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x78]
call dword [0x53063c]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xfa
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__2_OR_cardat.functype__5_OR_cardat.functype__6__AND__1_ORDER_BY_model.en_ASC
call edi
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xc
jmp 0x497119
cmp eax, 2
jne 0x497016
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
push 0x37
jne 0x496fbe
push str._model.cn_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xd
jmp 0x496fcf
push str._model.en_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xe
push esi
push esi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x78]
call dword [0x53063c]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
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__1_AND__1_ORDER_BY_model.en_ASC
call edi
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0xf
jmp 0x497119
cmp eax, 3
jne 0x497099
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
jne 0x49703f
push 0x3b
push str._cardat.name_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x10
jmp 0x497052
push 0x3e
push str._cardat.name_en_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x11
push esi
push esi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x78]
call dword [0x53063c]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xc1
push str.SELECT_DISTINCT_cardat.aid__cardat.name__cardat.name_en__cardat.funclevel_FROM_cardat_WHERE_cardat.hide__0_AND____________________________cardat.functype__3_AND__1_ORDER_BY_cardat.name_en_ASC
call edi
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x12
jmp 0x497119
cmp eax, 4
jne 0x49715e
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
push 0x37
jne 0x4970c6
push str._model.cn_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x13
jmp 0x4970d7
push str._model.en_like____1___or_model.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x14
push esi
push esi
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x78]
call dword [0x53063c]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
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__4_AND__1_ORDER_BY_model.en_ASC
call edi
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 0x15
add esp, 4
mov byte [ebp + 0x68], 0x20
mov ecx, esp
push dword [ebp + 0x68]
call dword [0x5307b0]
push 0
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x6c]
call dword [0x530794]
push eax
lea ecx, [ebp + 0x58]
call dword [0x53063c]
lea ecx, [ebp + 0x60]
call dword [0x5307a0]
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x64]
call dword [0x5309c8]
lea ecx, [ebp + 0x64]
test al, al
je 0x49736d
call dword [0x5309d4]
test al, al
je 0x4973d0
mov edi, dword [0x5309cc]
mov ebx, dword [0x530740]
push 0x28
call fcn.0050ae88
add esp, 4
mov dword [ebp + 0x44], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.004a7830
mov dword [ebp + 0x6c], eax
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x10]
push 0
push eax
mov byte [ebp - 4], 6
call edi
lea ecx, [ebp + 0x10]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x497200
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x64]
call edi
push 0
mov ecx, eax
mov byte [ebp - 4], 0x17
call dword [0x530734]
mov ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x68]
push eax
call fcn.004a79d0
lea ecx, [ebp]
mov byte [ebp - 4], 6
call ebx
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp - 0x1c]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x497255
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x18
push ecx
mov ecx, eax
call dword [0x53072c]
mov ecx, dword [ebp + 0x6c]
push eax
mov byte [ebp - 4], 0x19
call fcn.004a79b0
lea ecx, [ebp + 0x60]
call dword [0x5307a0]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call ebx
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp - 0x3c]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x4972aa
push 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, eax
call dword [0x53072c]
mov ecx, dword [ebp + 0x6c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.004a79c0
lea ecx, [ebp + 0x4c]
call dword [0x5307a0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call ebx
push 3
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp - 0x5c]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x4972f6
push 3
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x64]
call edi
push 0
mov ecx, eax
mov byte [ebp - 4], 0x1c
call dword [0x530734]
mov ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x48]
push eax
call fcn.004a7a20
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call ebx
push 4
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp + 0x24]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x49734b
push 4
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x64]
call edi
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x1d
push ecx
mov ecx, eax
call dword [0x53072c]
mov ecx, dword [ebp + 0x6c]
push eax
mov byte [ebp - 4], 0x1e
call fcn.004a7a10
lea ecx, [ebp + 0x54]
call dword [0x5307a0]
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 6
call ebx
mov ecx, dword [ebp + 0x50]
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ecx + 0x34]
call fcn.00427a00
lea ecx, [ebp + 0x64]
call dword [0x5309d4]
test al, al
jne 0x497190
jmp 0x4973d0
lea eax, [ebp + 0x34]
push eax
call dword [0x5309c4]
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x1f
push ecx
mov ecx, eax
call dword [0x530a1c]
mov esi, eax
lea eax, [ebp + 0x5c]
mov byte [ebp - 4], 0x20
push eax
push 0
push 0
push 0
lea ecx, [ebp + 0x20]
call dword [0x5307bc]
mov ecx, eax
call dword [0x5307b8]
push esi
mov ecx, eax
mov byte [ebp - 4], 0x21
call dword [0x530700]
lea ecx, [ebp + 0x5c]
call dword [0x530710]
lea ecx, [ebp + 0x54]
call dword [0x5307a0]
lea ecx, [ebp + 0x34]
call dword [0x5309b4]
lea ecx, [ebp + 0x78]
call dword [0x5307a0]
lea ecx, [ebp + 0x58]
call dword [0x5307a0]
lea ecx, [ebp + 0x64]
call dword [0x5309c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret 4