Function at 0x170e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 4
mov esi, dword [esp + 0x11c]
push eax
push esi
push 0x7181
call fcn.000156f0
or eax, eax
jne 0x17110
sub eax, eax
jmp 0x17606
lea eax, [esp + 0xe]
push 0x24cb0
push eax
push esi
push 0x7183
call fcn.000158b0
or eax, eax
jne 0x17130
sub eax, eax
jmp 0x17606
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00016e00
mov edi, eax
or edi, edi
jne 0x17148
sub eax, eax
jmp 0x17606
push str.ODBC.INI
lea eax, [esp + 0x18]
push 0x100
push eax
push 0x2484c
push str.Driver
push section..bss
call sub.odbccp32.dll_SQLGetPrivateProfileString
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.dll_LoadLibraryA
mov dword [edi + 4], eax
or eax, eax
jne 0x17194
push edi
call fcn.00016e70
push esi
push 0x7029
call fcn.000130a0
sub eax, eax
jmp 0x17606
push str.SQLAllocEnv
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xc], eax
or eax, eax
jne 0x171c7
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_FreeLibrary
push edi
call fcn.00016e70
push esi
push 0x702b
call fcn.000130a0
sub eax, eax
jmp 0x17606
push edi
call eax
mov bx, ax
push str.SQLAllocConnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 8], eax
push str.SQLAllocStmt
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x10], eax
push str.SQLBindCol
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x14], eax
push str.SQLBindParameter
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x18], eax
push str.SQLBrowseConnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x1c], eax
push str.SQLCancel
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x20], eax
push str.SQLColAttributes
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x24], eax
push str.SQLColumnPrivileges
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x28], eax
push str.SQLColumns
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x2c], eax
push str.SQLConnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x30], eax
push str.SQLDataSources
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x34], eax
push str.SQLDescribeCol
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x38], eax
push str.SQLDescribeParam
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x3c], eax
push str.SQLDisconnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x40], eax
push str.SQLDriverConnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x44], eax
push str.SQLDrivers
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x48], eax
push str.SQLError
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x4c], eax
push str.SQLExecDirect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x50], eax
push str.SQLExecute
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x54], eax
push str.SQLExtendedFetch
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x58], eax
push str.SQLFetch
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x5c], eax
push str.SQLForeignKeys
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x60], eax
push str.SQLFreeConnect
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x64], eax
push str.SQLFreeEnv
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x68], eax
push str.SQLFreeStmt
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x6c], eax
push str.SQLGetConnectOption
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x70], eax
push str.SQLGetCursorName
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x74], eax
push str.SQLGetData
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x78], eax
push str.SQLGetFunctions
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x7c], eax
push str.SQLGetInfo
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x80], eax
push str.SQLGetStmtOption
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x84], eax
push str.SQLGetTypeInfo
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x88], eax
push str.SQLMoreResults
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x8c], eax
push str.SQLNativeSql
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x90], eax
push str.SQLNumParams
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x94], eax
push str.SQLNumResultCols
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x98], eax
push str.SQLParamData
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0x9c], eax
push str.SQLParamOptions
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xa0], eax
push str.SQLPrepare
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xa4], eax
push str.SQLPrimaryKeys
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xa8], eax
push str.SQLProcedureColumns
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xac], eax
push str.SQLProcedures
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xb0], eax
push str.SQLPutData
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xb4], eax
push str.SQLRowCount
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xb8], eax
push str.SQLSetConnectOption
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xbc], eax
push str.SQLSetCursorName
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xc0], eax
push str.SQLSetParam
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xc4], eax
push str.SQLSetPos
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xc8], eax
push str.SQLSetScrollOptions
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xcc], eax
push str.SQLSetStmtOption
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xd0], eax
push str.SQLSpecialColumns
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xd4], eax
push str.SQLStatistics
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xd8], eax
push str.SQLTablePrivileges
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xdc], eax
push str.SQLTables
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xe0], eax
push str.SQLTransact
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [edi + 0xe4], eax
cmp bx, word [esp + 0xe]
je 0x175e7
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_FreeLibrary
push edi
call fcn.00016e70
push esi
push 0x702d
call fcn.000130a0
sub eax, eax
jmp 0x17606
or bx, bx
je 0x17601
cmp bx, 1
je 0x17601
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.dll_FreeLibrary
push edi
call fcn.00016e70
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x108
ret 4