Function at 0x1000e490
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002da08
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
push str.SELECT__FROM_MATERIEL_WHERE_NAME
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
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 0x1003d100
push eax
lea eax, [ebp - 0x20]
mov ebx, 3
push eax
mov byte [ebp - 4], bl
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], bl
call fcn.1002b482
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1002b482
mov ecx, str.ADODB.Recordset
mov byte [ebp - 4], 5
test ecx, ecx
je 0x1000e578
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, ebx
and al, 0xfc
call fcn.1002b840
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 0x1000e56b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x1000e578
push 7
push 0
push edi
lea ecx, [ebp - 0x18]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x50], 9
mov dword [ebp - 0x48], eax
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
mov esi, eax
mov word [ebp - 0x40], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x1000e5b6
test esi, esi
je 0x1000e5b6
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 7
test eax, eax
jne 0x1000e5ce
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x50]
push 1
push ebx
push ebx
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
sub esp, 0x10
mov esi, eax
mov dword [edx], edi
mov edi, dword [ebp - 0x4c]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x48]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x44]
mov dword [edx + 0xc], edi
mov edi, dword [ebp - 0x40]
mov edx, esp
push 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
call dword [ecx + 0xa0]
test eax, eax
jge 0x1000e625
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call esi
test eax, eax
jge 0x1000e63f
push eax
call fcn.1002ba34
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
push ecx
call esi
test eax, eax
jge 0x1000e653
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1000e667
push 0x80004003
call fcn.1002ba34
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 0x1000e683
push 0x1003d148
push esi
push eax
call fcn.1002ba42
cmp word [ebp - 0x12], 0
je 0x1000e691
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1000e6a5
push 0x80004003
call fcn.1002ba34
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 0x1000e6c1
push 0x1003d148
push esi
push eax
call fcn.1002ba42
cmp word [ebp - 0x12], 0
jne 0x1000e6cf
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1000e6e3
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
test eax, eax
jge 0x1000e6fe
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.10004c80
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.1002b482
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1002b482
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