Function at 0x405ad0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b5b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [0x4ce7dc]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], eax
push 0x4d0c78
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00480d70
push str.SELECT__FROM_ChaXunBiao_WHERE__ViewFlag__1_
lea ecx, [ebp - 0x18]
call fcn.00480d70
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
mov esi, eax
mov word [ebp - 0x40], 8
call fcn.00475083
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x405b56
test esi, esi
je 0x405b56
push 0x8007000e
call fcn.00474fd6
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x54]
push edx
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x405b72
push eax
call fcn.00474fd6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x405b8a
push eax
call fcn.00474fd6
mov edx, str.ADODB.Recordset
mov byte [ebp - 4], 3
test edx, edx
je 0x405be9
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004676c0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x405bdc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x405be9
call esi
jmp 0x405be9
push 7
push 0
push edi
lea ecx, [ebx + 0x5c]
call fcn.00401aa0
mov eax, dword [0x4d0d40]
mov word [ebp - 0x40], 9
mov dword [ebp - 0x38], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 4], 4
test eax, eax
jne 0x405c12
push 0x80004003
call fcn.00474fd6
mov ecx, dword [ebp - 0x40]
push 1
push 2
push 2
sub esp, 0x10
mov esi, dword [ebx + 0x5c]
mov eax, esp
sub esp, 0x10
mov edx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x54]
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0xc], ecx
call dword [edx + 0xa0]
mov edi, eax
test edi, edi
jge 0x405c6e
push 0x4c5240
push esi
push edi
call fcn.00474fe4
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x405c86
push eax
call fcn.00474fd6
test edi, edi
jl 0x406065
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 4], 5
test eax, eax
jne 0x405ca3
push 0x80004003
call fcn.00474fd6
mov esi, dword [ebx + 0x5c]
push esi
mov eax, dword [esi]
call dword [eax + 0x98]
test eax, eax
jge 0x405cbf
push 0x4c5240
push esi
push eax
call fcn.00474fe4
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x405cd0
push 0x80004003
call fcn.00474fd6
mov esi, dword [ebx + 0x5c]
lea edx, [ebp - 0x12]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x50]
test eax, eax
jge 0x405ced
push 0x4c5240
push esi
push eax
call fcn.00474fe4
cmp word [ebp - 0x12], 0
je 0x405d0c
mov eax, dword [ebx + 0x7c]
push 0
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x406065
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x405d1d
push 0x80004003
call fcn.00474fd6
mov esi, dword [ebx + 0x5c]
push esi
mov ecx, dword [esi]
call dword [ecx + 0x98]
test eax, eax
jge 0x405d39
push 0x4c5240
push esi
push eax
call fcn.00474fe4
mov eax, dword [0x4ce7dc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x7c]
push 0
push 0
push 0x1009
push edx
mov byte [ebp - 4], 9
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x405d80
push 0x80004003
call fcn.00474fd6
mov esi, dword [ebx + 0x5c]
lea ecx, [ebp - 0x12]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x50]
test eax, eax
jge 0x405d9d
push 0x4c5240
push esi
push eax
call fcn.00474fe4
cmp word [ebp - 0x12], 0
jne 0x405ff5
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push edx
push 0x4c521c
push eax
call fcn.00479ecc
add esp, 0xc
mov edi, 8
mov word [ebp - 0x40], di
push str.Chinese
call fcn.00475083
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x405dea
mov ecx, str.Chinese
test ecx, ecx
je 0x405dea
push 0x8007000e
call fcn.00474fd6
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x405dff
push 0x80004003
call fcn.00474fd6
mov ecx, dword [ebx + 0x5c]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x84]
push edx
push eax
call fcn.00401bf0
mov ecx, dword [eax + 8]
mov byte [ebp - 4], 0xb
push ecx
lea ecx, [ebp - 0x24]
call fcn.00480d97
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x84]
push edx
mov byte [ebp - 4], 0xa
call esi
test eax, eax
jge 0x405e3f
push eax
call fcn.00474fd6
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
call esi
test eax, eax
jge 0x405e53
push eax
call fcn.00474fd6
push str.English
mov word [ebp - 0x64], di
call fcn.00475083
test eax, eax
mov dword [ebp - 0x5c], eax
jne 0x405e7b
mov ecx, str.English
test ecx, ecx
je 0x405e7b
push 0x8007000e
call fcn.00474fd6
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 4], 0xc
test eax, eax
jne 0x405e90
push 0x80004003
call fcn.00474fd6
mov ecx, dword [ebx + 0x5c]
lea edx, [ebp - 0x64]
lea eax, [ebp - 0xa4]
push edx
push eax
call fcn.00401bf0
mov ecx, dword [eax + 8]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x20]
call fcn.00480d97
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
push edx
call esi
test eax, eax
jge 0x405eca
push eax
call fcn.00474fd6
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 9
push eax
call esi
test eax, eax
jge 0x405ede
push eax
call fcn.00474fd6
push str.XuHao
mov word [ebp - 0x74], di
call fcn.00475083
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x405f06
mov ecx, str.XuHao
test ecx, ecx
je 0x405f06
push 0x8007000e
call fcn.00474fd6
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 4], 0xe
test eax, eax
jne 0x405f1b
push 0x80004003
call fcn.00474fd6
mov ecx, dword [ebx + 0x5c]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x94]
push edx
push eax
call fcn.00401bf0
mov ecx, dword [eax + 8]
mov byte [ebp - 4], 0xf
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00480d97
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0xe
push edx
call esi
test eax, eax
jge 0x405f55
push eax
call fcn.00474fd6
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 9
push eax
call esi
test eax, eax
jge 0x405f69
push eax
call fcn.00474fd6
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
push 0
push 0
push 0
push 0
lea esi, [ebx + 0x60]
push ecx
push edx
push 1
mov ecx, esi
call fcn.0047aab0
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push edi
mov ecx, esi
call fcn.0047aafc
mov ecx, dword [ebp - 0x20]
push ecx
push 2
push edi
mov ecx, esi
call fcn.0047aafc
mov edx, dword [ebp - 0x1c]
mov ecx, esi
push edx
push 3
push edi
call fcn.0047aafc
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x5c]
inc edx
inc ecx
mov dword [ebp - 0x2c], edx
test eax, eax
mov dword [ebp - 0x28], ecx
jne 0x405fd0
push 0x80004003
call fcn.00474fd6
mov esi, dword [ebx + 0x5c]
push esi
mov eax, dword [esi]
call dword [eax + 0x90]
test eax, eax
jge 0x405d6f
push 0x4c5240
push esi
push eax
call fcn.00474fe4
jmp 0x405d6f
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x406006
push 0x80004003
call fcn.00474fd6
mov ecx, dword [ebx + 0x5c]
call fcn.00406710
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00480be7
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00480be7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00480be7
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00480be7
jmp 0x406065
push 0
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0047f5fd
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x40608d
push eax
call fcn.00474fd6
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00480be7
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xd0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret