Function at 0x497400
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x520e11
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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 + 0x4c], edi
lea ecx, [edi + 0x38]
call dword [0x530608]
test eax, eax
jle 0x4974de
lea ecx, [edi + 0x38]
xor esi, esi
call dword [0x530608]
test eax, eax
jle 0x497477
push esi
lea ecx, [edi + 0x38]
call dword [0x530604]
mov ecx, dword [eax]
test ecx, ecx
je 0x497469
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
lea ecx, [edi + 0x38]
inc esi
call dword [0x530608]
cmp esi, eax
jl 0x497452
mov esi, dword [0x5304a8]
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x38], esi
mov eax, dword [ecx]
or edi, 0xffffffff
mov ebx, dword [0x530610]
mov dword [ebp - 4], 0
test eax, eax
je 0x4974aa
cmp eax, edi
je 0x4974b0
mov eax, edi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4974b0
push ecx
call ebx
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
je 0x4974ce
cmp eax, 0xffffffff
je 0x4974d4
lock xadd dword [esi], edi
dec edi
setne al
test al, al
jne 0x4974d4
push esi
call ebx
add esp, 4
mov edi, dword [ebp + 0x4c]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x497976
push ecx
mov ecx, esp
call dword [0x530a18]
lea ecx, [ebp + 0x68]
call dword [0x5307a8]
push eax
lea ecx, [ebp + 0x74]
mov dword [ebp - 4], 2
call dword [0x5309b8]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x54]
call dword [0x5307a8]
lea ecx, [ebp + 0x5c]
call dword [0x5307a8]
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 6
cmp eax, 1
jne 0x4975ea
mov edi, dword [0x53076c]
cmp dword [0x7c824c], eax
jne 0x49755e
push 0x3b
push str._cardat.name_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 7
jmp 0x497571
push 0x3e
push str._cardat.name_en_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 8
push esi
push esi
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x68]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x5c]
call dword [0x53063c]
lea ecx, [ebp + 0x60]
call dword [0x5307a0]
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0xf1
push str.SELECT_DISTINCT_cardat.aid__cardat.name__cardat.name_en__cardat.funclevel_FROM_cardat_WHERE_cardat.hide__0_AND_____________________________cardat.functype__2_or_cardat.functype__5_OR_cardat.functype__6__AND__1_ORDER_BY_cardat.name_en_ASC
call edi
mov dword [ebp + 0x68], 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 + 0x5c]
push eax
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x68]
call dword [0x530794]
push eax
lea ecx, [ebp + 0x54]
call dword [0x53063c]
lea ecx, [ebp + 0x64]
jmp 0x49772a
cmp eax, 2
jne 0x49766d
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
jne 0x497613
push 0x3b
push str._cardat.name_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xa
jmp 0x497626
push 0x3e
push str._cardat.name_en_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xb
push esi
push esi
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x68]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x5c]
call dword [0x53063c]
lea ecx, [ebp + 0x64]
call dword [0x5307a0]
lea ecx, [ebp + 0x68]
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__1_AND__1_ORDER_BY_cardat.name_en_ASC
call edi
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xc
jmp 0x4976f8
cmp eax, 3
je 0x49773d
cmp eax, 4
jne 0x49773d
cmp dword [0x7c824c], 1
mov edi, dword [0x53076c]
jne 0x4976a3
push 0x3b
push str._cardat.name_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xd
jmp 0x4976b6
push 0x3e
push str._cardat.name_en_like____1___or_cardat.keyword_like____2___
call edi
add esp, 8
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xe
push esi
push esi
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x68]
call dword [0x530790]
push eax
lea ecx, [ebp + 0x5c]
call dword [0x53063c]
lea ecx, [ebp + 0x64]
call dword [0x5307a0]
lea ecx, [ebp + 0x68]
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__4_AND__1_ORDER_BY_cardat.name_en_ASC
call edi
mov dword [ebp + 0x68], eax
mov byte [ebp - 4], 0xf
add esp, 4
mov byte [ebp + 0x64], 0x20
mov ecx, esp
push dword [ebp + 0x64]
call dword [0x5307b0]
push 0
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x68]
call dword [0x530794]
push eax
lea ecx, [ebp + 0x54]
call dword [0x53063c]
lea ecx, [ebp + 0x60]
call dword [0x5307a0]
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x74]
call dword [0x5309c8]
lea ecx, [ebp + 0x74]
test al, al
je 0x4978f8
call dword [0x5309d4]
test al, al
je 0x49795b
mov edi, dword [0x5309cc]
mov ebx, dword [0x530740]
nop
push 0x28
call fcn.0050ae88
add esp, 4
mov dword [ebp + 0x44], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.004a7830
mov dword [ebp + 0x68], eax
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x58], 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 0x4977e0
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x74]
call edi
push 0
mov ecx, eax
mov byte [ebp - 4], 0x11
call dword [0x530734]
mov ecx, dword [ebp + 0x68]
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x64]
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 + 0x74]
call edi
lea ecx, [ebp - 0x1c]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x497835
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x74]
call edi
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x12
push ecx
mov ecx, eax
call dword [0x53072c]
mov ecx, dword [ebp + 0x68]
push eax
mov byte [ebp - 4], 0x13
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 + 0x74]
call edi
lea ecx, [ebp - 0x3c]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x49788a
push 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x74]
call edi
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x14
push ecx
mov ecx, eax
call dword [0x53072c]
mov ecx, dword [ebp + 0x68]
push eax
mov byte [ebp - 4], 0x15
call fcn.004a79c0
lea ecx, [ebp + 0x48]
call dword [0x5307a0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call ebx
push 3
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 0x74]
call edi
lea ecx, [ebp + 0x24]
mov esi, dword [eax + 8]
call ebx
test esi, 0x3fffffff
je 0x4978d6
push 3
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x74]
call edi
push 0
mov ecx, eax
mov byte [ebp - 4], 0x16
call dword [0x530734]
mov ecx, dword [ebp + 0x68]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x50]
push eax
call fcn.004a7a20
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 6
call ebx
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x58]
push eax
lea ecx, [ecx + 0x38]
call fcn.00427a00
lea ecx, [ebp + 0x74]
call dword [0x5309d4]
test al, al
jne 0x497770
jmp 0x49795b
lea eax, [ebp + 0x34]
push eax
call dword [0x5309c4]
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x17
push ecx
mov ecx, eax
call dword [0x530a1c]
mov esi, eax
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 0x18
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], 0x19
call dword [0x530700]
lea ecx, [ebp + 0x58]
call dword [0x530710]
lea ecx, [ebp + 0x50]
call dword [0x5307a0]
lea ecx, [ebp + 0x34]
call dword [0x5309b4]
lea ecx, [ebp + 0x5c]
call dword [0x5307a0]
lea ecx, [ebp + 0x54]
call dword [0x5307a0]
lea ecx, [ebp + 0x74]
call dword [0x5309c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x6c]
pop ebp
ret 4