Function at 0x4dae70
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58a298
push eax
mov dword fs:[0], esp
sub esp, 0xc
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4daf7c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x64b2e4]
mov ebx, 3
cmp eax, ebx
mov dword [esp + 0x24], 0
jne 0x4db017
mov edi, dword [esp + 0x30]
cmp byte [edi + 0x31], 0x56
jne 0x4dafa5
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x3c]
lea edx, [ecx + eax*4]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_4
mov ebp, dword [esp + 0x30]
mov esi, str.PKKEY
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4daf1c
test cl, cl
je 0x4daf18
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4daf1c
add eax, 2
add esi, 2
test cl, cl
jne 0x4daef4
xor eax, eax
jmp 0x4daf21
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4daf91
mov esi, str.PRIMARY
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4daf54
test cl, cl
je 0x4daf50
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4daf54
add eax, 2
add esi, 2
test cl, cl
jne 0x4daf2c
xor eax, eax
jmp 0x4daf59
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4daf91
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [edi + 0xcc]
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x30]
jmp 0x4db0aa
push ebp
lea eax, [esp + 0x30]
push str.SELECT_COLUMN_NAME_FROM_Information_schema.Key_column_usage_WHERE_TABLE_NAME___s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0
push 1
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x1c]
mov byte [esp + 0x30], 0
push eax
call fcn.0044bd40
mov ecx, dword [esp + 0x20]
push 0
push ecx
push edi
mov byte [esp + 0x40], bl
call fcn.0044db80
mov esi, eax
add esp, 0x1c
test esi, esi
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
jne 0x4db0aa
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x67d3d0]
test eax, eax
jne 0x4db02f
call fcn.004dab80
mov dword [0x67d3d0], 1
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
xor edi, edi
mov esi, 0x6785ac
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x2c]
push ebp
push edx
call ebx
add esp, 8
test eax, eax
je 0x4db075
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4daf6b
add esi, 4
inc edi
cmp esi, 0x67d3cc
jl 0x4db03c
jmp 0x4daf6b
lea ecx, [edi*4 + 0x673788]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push 0
push edx
push eax
mov byte [esp + 0x30], 4
call fcn.0044db80
add esp, 0xc
mov esi, eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret