Function at 0x456150
Capabilities:
Terminate process

Disassembly:
push 0x758
push 0x4b0228
call fcn.00487850
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x22c], eax
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x230], esi
mov byte [ebp - 0x220], 0
push 0x1ff
xor edi, edi
push edi
lea eax, [ebp - 0x21f]
push eax
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x240], edi
cmp esi, edi
jne 0x4561c9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x230], eax
mov edx, ebx
call fcn.00436c5d
test eax, eax
jne 0x4564e7
xor ebx, ebx
inc ebx
push ebx
push 0x6e0
call fcn.00401a3a
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x228], esi
cmp esi, edi
je 0x4564e7
cmp dword [0x5aa898], edi
jne 0x45620b
mov dword [0x5aa898], ebx
call fcn.004560bd
push edi
mov ecx, dword [ebp - 0x22c]
call fcn.00455eee
pop ecx
mov dword [ebp - 4], edi
push esi
push edi
push ebx
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
movzx eax, ax
cmp ax, di
je 0x45623d
cmp ax, bx
je 0x45623d
push esi
call fcn.00401a00
pop ecx
jmp 0x4564e0
push edi
push 3
push 0xc8
push dword [esi]
call dword [sym.imp.ODBC32.dll_SQLSetEnvAttr]
movzx eax, ax
cmp ax, di
je 0x456265
cmp ax, bx
je 0x456265
push dword [esi]
push ebx
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
jmp 0x456231
lea ebx, [esi + 4]
push ebx
push dword [esi]
push 2
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
movzx eax, ax
cmp ax, di
je 0x456287
cmp ax, 1
je 0x456287
push dword [esi]
push 1
jmp 0x45625d
push edi
push 0xa
push 0x67
push dword [ebx]
call dword [sym.imp.ODBC32.dll_SQLSetConnectAttr]
push dword [ebp - 0x224]
lea eax, [esi + 0x410]
mov ecx, 0x104
call fcn.00435b27
pop ecx
lea eax, [esi + 0x408]
push edi
push eax
push 0x3ff
lea eax, [esi + 8]
push eax
push 0xfffffffffffffffd
lea eax, [ebp - 0x220]
push eax
push edi
push dword [ebx]
call dword [sym.imp.ODBC32.dll_SQLDriverConnect]
movzx eax, ax
movsx ecx, word [esi + 0x408]
mov byte [ecx + esi + 8], 0
cmp ax, di
je 0x4563d4
cmp ax, 1
je 0x4563d4
push dword [ebx]
push 2
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
call ebx
push dword [esi]
push 1
call ebx
push esi
call fcn.00401a00
pop ecx
cmp dword [0x5aa8a4], edi
jne 0x456384
xor esi, esi
inc esi
mov dword [0x5aa8a4], esi
push esi
push 2
pop ecx
call fcn.00455eee
mov dword [0x5aa89c], esi
mov dword [esp], str.Data_source_name_not_found
call fcn.00455654
push eax
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x45634c
call fcn.00455574
mov dword [0x5aa8a0], esi
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push dword [ebp - 0x23c]
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x224]
call fcn.00456150
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
jmp 0x4564e9
mov byte [ebp - 0x768], 0
mov byte [ebp - 0x348], 0
mov byte [ebp - 0x660], 0
mov byte [ebp - 0x450], 0
mov byte [ebp - 0x558], 0
mov dword [0x5aa89c], edi
cmp dword [0x5aa8a0], edi
je 0x4564e0
push 1
push str.NeedAdminLogin.flg
push edi
call fcn.0044bf6e
pop ecx
pop ecx
mov ecx, eax
call fcn.00476003
jmp 0x456237
cmp dword [0x5aa89c], edi
je 0x4563e2
mov dword [0x5aa89c], edi
mov dword [0x5aa8a0], edi
push str.NeedAdminLogin.flg
push edi
call fcn.0044bf6e
pop ecx
pop ecx
mov edi, eax
call fcn.00474f3d
test eax, eax
je 0x456413
push str.NeedAdminLogin.flg
push 0
call fcn.0044bf6e
pop ecx
pop ecx
call fcn.00474fee
lea edi, [esi + 0x40c]
push edi
push dword [ebx]
push 3
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
mov eax, dword [0x5aa890]
test eax, eax
jne 0x456437
call fcn.0043c742
mov dword [0x5aa890], eax
push esi
mov ebx, eax
call fcn.0043c6f1
pop ecx
mov eax, dword [0x5aa890]
test eax, eax
jne 0x456470
push dword [edi]
push 3
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
call edi
push dword [esi + 4]
call dword [sym.imp.ODBC32.dll_SQLDisconnect]
push dword [esi + 4]
push 2
call edi
push dword [esi]
push 1
call edi
jmp 0x456231
mov edi, eax
call fcn.0043c5b6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x10000
mov dword [esi + 0x6dc], eax
push eax
call fcn.004028f8
pop ecx
mov dword [esi + 0x6d8], eax
call fcn.00435ba1
lea edi, [esi + 0x514]
push str.ODBC.c
push edi
call fcn.0047173f
pop ecx
pop ecx
mov esi, str.An_ODBC_handle_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.004715ca
mov eax, 0xdac
mov ecx, edi
call fcn.004715b7
mov eax, dword [ebp - 0x228]
call fcn.0045562c
mov eax, dword [ebp - 0x228]
jmp 0x4564e9
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00487898
ret