Function at 0x452376
Capabilities:
Terminate process

Disassembly:
push 0x758
push 0x51c8d8
call fcn.004d8c1c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x750], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x760], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x764], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x75c], eax
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x758], esi
xor ebx, ebx
mov byte [ebp - 0x74c], bl
push 0x1ff
push ebx
lea eax, [ebp - 0x74b]
push eax
call fcn.004c05d0
add esp, 0xc
mov dword [ebp - 0x768], ebx
cmp esi, ebx
jne 0x4523e5
lea eax, [ebp - 0x768]
mov dword [ebp - 0x758], eax
mov eax, dword [ebp + 0x18]
call fcn.00452acb
mov edx, edi
call fcn.00485754
test eax, eax
jne 0x4527dd
xor edi, edi
inc edi
push edi
push 0x6e0
call fcn.004bf452
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x754], esi
cmp esi, ebx
je 0x4527dd
cmp dword [0x60e914], ebx
jne 0x45242f
mov dword [0x60e914], edi
call fcn.0045361a
push dword [ebp + 0x18]
push ebx
push ebx
call fcn.004536b2
add esp, 0xc
mov dword [ebp - 4], ebx
push esi
push ebx
push edi
call sub.ODBC32.dll_SQLAllocHandle
movzx eax, ax
cmp ax, bx
je 0x452460
cmp ax, di
je 0x452460
push esi
call fcn.004bf2a6
pop ecx
jmp 0x4527d6
push ebx
push 3
push 0xc8
push dword [esi]
call sub.ODBC32.dll_SQLSetEnvAttr
movzx eax, ax
cmp ax, bx
je 0x452486
cmp ax, di
je 0x452486
push dword [esi]
push edi
call sub.ODBC32.dll_SQLFreeHandle
jmp 0x452454
lea edi, [esi + 4]
push edi
push dword [esi]
push 2
call sub.ODBC32.dll_SQLAllocHandle
movzx eax, ax
cmp ax, bx
je 0x4524a7
cmp ax, 1
je 0x4524a7
push dword [esi]
push 1
jmp 0x45247f
push ebx
push 0xa
push 0x67
push dword [edi]
call sub.ODBC32.dll_SQLSetConnectAttr
push dword [ebp - 0x750]
lea eax, [esi + 0x410]
mov ecx, 0x104
call fcn.00485786
pop ecx
push dword [ebp + 0x18]
push dword [ebp - 0x75c]
push dword [ebp - 0x764]
push dword [ebp - 0x750]
mov eax, dword [ebp - 0x760]
lea ecx, [ebp - 0x74c]
call fcn.004527e5
add esp, 0x10
lea eax, [esi + 0x408]
push ebx
push eax
push 0x3ff
lea eax, [esi + 8]
push eax
push 0xfffffffffffffffd
lea eax, [ebp - 0x74c]
push eax
push ebx
push dword [edi]
call sub.ODBC32.dll_SQLDriverConnect
movzx eax, ax
movsx ecx, word [esi + 0x408]
mov byte [ecx + esi + 8], bl
cmp ax, bx
je 0x4526d2
cmp ax, 1
je 0x4526d2
push dword [edi]
push 2
call sub.ODBC32.dll_SQLFreeHandle
push dword [esi]
xor edi, edi
inc edi
push edi
call sub.ODBC32.dll_SQLFreeHandle
push esi
call fcn.004bf2a6
pop ecx
cmp dword [0x60e920], ebx
jne 0x4525c7
mov dword [0x60e920], edi
push 2
push edi
push ebx
call fcn.004536b2
add esp, 0xc
mov dword [0x60e918], edi
push str.Data_source_name_not_found
call fcn.004529f6
push eax
call fcn.00486428
pop ecx
pop ecx
test eax, eax
je 0x452592
call fcn.00452ac0
mov dword [0x60e91c], edi
push dword [ebp - 0x758]
push dword [ebp + 0x18]
push dword [ebp - 0x75c]
push dword [ebp - 0x764]
push dword [ebp - 0x760]
push dword [ebp - 0x750]
call fcn.00452376
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
jmp 0x4527df
mov byte [ebp - 0x12c], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp - 0x12b]
push eax
call fcn.004c05d0
add esp, 0xc
mov byte [ebp - 0x33c], bl
push esi
push ebx
lea eax, [ebp - 0x33b]
push eax
call fcn.004c05d0
add esp, 0xc
mov byte [ebp - 0x54c], bl
push esi
push ebx
lea eax, [ebp - 0x54b]
push eax
call fcn.004c05d0
add esp, 0xc
mov byte [ebp - 0x234], bl
push esi
push ebx
lea eax, [ebp - 0x233]
push eax
call fcn.004c05d0
add esp, 0xc
mov byte [ebp - 0x444], bl
push esi
push ebx
lea eax, [ebp - 0x443]
push eax
call fcn.004c05d0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov esi, str.SoftwareODBCODBCINST.INISQL_Server
push esi
mov eax, str.Driver
call fcn.0040c6bc
lea eax, [ebp - 0x33c]
push eax
push esi
mov edi, str.Setup
mov eax, edi
call fcn.0040c6bc
lea eax, [ebp - 0x444]
push eax
push esi
mov eax, str.DriverODBCVer
call fcn.0040c6bc
lea eax, [ebp - 0x54c]
push eax
mov esi, str.SoftwareODBCODBCINST.INISQL_Anywhere_10p
push esi
mov eax, str.Driver
call fcn.0040c6bc
lea eax, [ebp - 0x234]
push eax
push esi
mov eax, edi
call fcn.0040c6bc
add esp, 0x28
mov dword [0x60e918], ebx
cmp dword [0x60e91c], ebx
je 0x4527d6
push 1
push str.NeedAdminLogin.flg
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
mov ecx, eax
call fcn.0041b9fb
jmp 0x45245a
cmp dword [0x60e918], ebx
je 0x4526e0
mov dword [0x60e918], ebx
mov dword [0x60e91c], ebx
push str.NeedAdminLogin.flg
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
mov edi, eax
call fcn.0041a56b
test eax, eax
je 0x452710
push str.NeedAdminLogin.flg
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
call fcn.0041a0f3
lea edi, [esi + 0x40c]
push edi
push dword [esi + 4]
push 3
call sub.ODBC32.dll_SQLAllocHandle
mov eax, dword [0x60e90c]
cmp eax, ebx
jne 0x452734
call fcn.0046e649
mov dword [0x60e90c], eax
push esi
mov ebx, eax
call fcn.0046e6fb
pop ecx
mov eax, dword [0x60e90c]
test eax, eax
jne 0x452766
push dword [edi]
push 3
call sub.ODBC32.dll_SQLFreeHandle
push dword [esi + 4]
call sub.ODBC32.dll_SQLDisconnect
push dword [esi + 4]
push 2
call sub.ODBC32.dll_SQLFreeHandle
jmp 0x4524a1
mov edi, eax
call fcn.0046ea19
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x10000
mov dword [esi + 0x6dc], eax
push eax
call fcn.004c0b87
pop ecx
mov dword [esi + 0x6d8], eax
call fcn.004856d7
lea edi, [esi + 0x514]
push str..ODBC.c
push edi
call fcn.0041cee3
pop ecx
pop ecx
mov esi, str.An_ODBC_handle_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.0041d0de
mov eax, 0xdac
mov ecx, edi
call fcn.0041d107
mov eax, dword [ebp - 0x754]
call fcn.004533dc
mov eax, dword [ebp - 0x754]
jmp 0x4527df
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004d8c64
ret