Function at 0x4179c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422b0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x24]
push eax
push 0x42fa68
push 7
push ebx
push 0x42fae8
mov byte [ebp - 4], 7
call esi
cmp eax, ebx
jl 0x417a52
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
jl 0x417a49
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push 0x42fad8
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x417a5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x24]
push edx
push 0x42fa68
push 7
push ebx
push 0x42fae8
call esi
cmp eax, ebx
jl 0x417a9e
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
jl 0x417a95
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push 0x42fad8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jne 0x417abd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push str.SELECT__FROM__s_WHERE__s_s
push edx
jmp 0x417af3
cmp eax, 2
jne 0x417ad9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [ebp - 0x1c]
push 0x42fa98
push eax
jmp 0x417af3
cmp eax, 3
jne 0x417afb
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
push 0x42fa78
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push 1
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.004195e0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004195f0
lea ecx, [edi + 4]
mov byte [ebp - 4], 9
call fcn.00419590
lea edx, [ebp + 0x1c]
mov ecx, eax
push edx
mov byte [ebp - 4], 8
call fcn.004192b0
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.004195b0
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x417b49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 4], 7
mov dword [ebp + 0x1c], esp
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x417b68
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, edi
call fcn.00418100
cmp eax, ebx
jg 0x417ba3
mov esi, dword [ebp + 8]
push 0x42fcb0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 1
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x417d73
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x417d73
mov esi, dword [ebp + 0x18]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x417bc7
push esi
mov ecx, eax
call fcn.00419a50
mov esi, eax
jmp 0x417bc9
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], 7
mov dword [ebp + 0x1c], esi
jne 0x417bde
push 0x8007000e
call fcn.0041dbc0
cmp esi, ebx
mov byte [ebp - 4], 0xc
mov word [ebp - 0x4c], 8
je 0x417bf0
mov edi, dword [esi]
jmp 0x417bf2
xor edi, edi
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x417c12
push 0x8007000e
call fcn.0041dbc0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
jne 0x417c27
push 0x80004003
call fcn.0041dbc0
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00419510
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0x10
call edi
cmp eax, ebx
jge 0x417c51
push eax
call fcn.0041dbc0
mov bl, 0xf
test esi, esi
mov byte [ebp - 4], bl
je 0x417c61
mov ecx, esi
call fcn.00419ad0
mov eax, dword [ebp - 0x3c]
test ax, ax
jne 0x417ca7
mov esi, dword [ebp + 8]
push 0x42fcb0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 1
push eax
mov byte [ebp - 4], 7
call edi
test eax, eax
jge 0x417c93
push eax
call fcn.0041dbc0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test eax, eax
je 0x417d73
jmp 0x417d6d
cmp ax, 8
mov dword [ebp + 0x1c], 0
jne 0x417cc2
mov edx, dword [ebp - 0x34]
lea ecx, [ebp + 0x1c]
push edx
call fcn.00419780
jmp 0x417cfd
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
push ecx
push 8
lea ecx, [ebp - 0x5c]
call fcn.00419b80
mov edx, dword [ebp - 0x54]
lea ecx, [ebp + 0x1c]
push edx
call fcn.00419780
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x417cfd
push eax
call fcn.0041dbc0
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x417d0f
call fcn.00419b20
jmp 0x417d11
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x417d29
call fcn.00419ad0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::TrimLeft
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x20], 1
push edx
mov byte [ebp - 4], 7
call edi
test eax, eax
jge 0x417d62
push eax
call fcn.0041dbc0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test eax, eax
je 0x417d73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0041d310
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0041d310
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0041d310
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0041d310
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0041d310
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0
call fcn.0041d310
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18