Function at 0x40beb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x18], esi
mov bl, 2
push str.SELECT__FROM_PAYMODE_WHERE_NAME
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator
lea eax, [ebp + 8]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push 0x424058
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004170c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004170c2
mov ecx, str.ADODB.Recordset
mov byte [ebp - 4], 5
test ecx, ecx
je 0x40bf96
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00417420
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 0x40bf89
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x40bf96
push 7
push 0
push edi
lea ecx, [ebp - 0x18]
call fcn.00404430
mov eax, dword [0x450454]
mov word [ebp - 0x40], 9
mov dword [ebp - 0x38], eax
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov bl, 6
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x30], 8
call fcn.004176d9
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x40bfd5
test esi, esi
je 0x40bfd5
push 0x8007000e
call fcn.0041762c
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 7
test eax, eax
jne 0x40bfed
push 0x80004003
call fcn.0041762c
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x40]
push 1
push 3
push 3
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
sub esp, 0x10
mov esi, eax
mov dword [edx], edi
mov edi, dword [ebp - 0x3c]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x38]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x34]
mov dword [edx + 0xc], edi
mov edi, dword [ebp - 0x30]
mov edx, esp
push eax
mov dword [edx], edi
mov edi, dword [ebp - 0x2c]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x28]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x24]
mov dword [edx + 0xc], edi
call dword [ecx + 0xa0]
test eax, eax
jge 0x40c046
push 0x4240a0
push esi
push eax
call fcn.0041763a
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x40c05f
push eax
call fcn.0041762c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
push ecx
call esi
test eax, eax
jge 0x40c073
push eax
call fcn.0041762c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c087
push 0x80004003
call fcn.0041762c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ecx, [ebp - 0x12]
push ecx
push eax
mov esi, eax
call dword [edx + 0x50]
test eax, eax
jge 0x40c0a3
push 0x4240a0
push esi
push eax
call fcn.0041763a
cmp word [ebp - 0x12], 0
je 0x40c0b1
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c0c5
push 0x80004003
call fcn.0041762c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ecx, [ebp - 0x12]
push ecx
push eax
mov esi, eax
call dword [edx + 0x50]
test eax, eax
jge 0x40c0e1
push 0x4240a0
push esi
push eax
call fcn.0041763a
cmp word [ebp - 0x12], 0
jne 0x40c0ef
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c103
push 0x80004003
call fcn.0041762c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
test eax, eax
jge 0x40c11e
push 0x4240a0
push esi
push eax
call fcn.0041763a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test eax, eax
je 0x40c132
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004170c2
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004170c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4