Function at 0x461579
Capabilities:
Terminate process

Disassembly:
push 0x758
push 0x4dfcf8
call fcn.004a8b50
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 0x4615f2
lea eax, [ebp - 0x240]
mov dword [ebp - 0x230], eax
mov edx, ebx
call fcn.00439e45
test eax, eax
jne 0x461913
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 0x461913
cmp dword [0x5de618], edi
jne 0x461634
mov dword [0x5de618], ebx
call fcn.004614e3
push edi
push edi
mov ecx, dword [ebp - 0x22c]
call fcn.00461313
pop ecx
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 0x461668
cmp ax, bx
je 0x461668
push esi
call fcn.00401a00
pop ecx
jmp 0x46190c
push edi
push 3
push 0xc8
push dword [esi]
call dword [sym.imp.ODBC32.dll_SQLSetEnvAttr]
movzx eax, ax
cmp ax, di
je 0x461690
cmp ax, bx
je 0x461690
push dword [esi]
push ebx
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
jmp 0x46165c
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 0x4616b2
cmp ax, 1
je 0x4616b2
push dword [esi]
push 1
jmp 0x461688
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.00438c78
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 0x461800
cmp ax, 1
je 0x461800
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 [0x5de624], edi
jne 0x4617b0
xor esi, esi
inc esi
mov dword [0x5de624], esi
push esi
push edi
push 2
pop ecx
call fcn.00461313
pop ecx
pop ecx
mov dword [0x5de61c], esi
push str.Data_source_name_not_found
call fcn.00460a13
push eax
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x461778
call fcn.00460943
mov dword [0x5de620], 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.00461579
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
jmp 0x461915
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 [0x5de61c], edi
cmp dword [0x5de620], edi
je 0x46190c
push 1
push str.NeedAdminLogin.flg
push edi
call fcn.004557a2
pop ecx
pop ecx
mov ecx, eax
call fcn.004900c0
jmp 0x461662
cmp dword [0x5de61c], edi
je 0x46180e
mov dword [0x5de61c], edi
mov dword [0x5de620], edi
push str.NeedAdminLogin.flg
push edi
call fcn.004557a2
pop ecx
pop ecx
mov edi, eax
call fcn.0048e76e
test eax, eax
je 0x46183f
push str.NeedAdminLogin.flg
push 0
call fcn.004557a2
pop ecx
pop ecx
call fcn.0048e81f
lea edi, [esi + 0x40c]
push edi
push dword [ebx]
push 3
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
mov eax, dword [0x5de610]
test eax, eax
jne 0x461863
call fcn.00444592
mov dword [0x5de610], eax
push esi
mov ebx, eax
call fcn.00444541
pop ecx
mov eax, dword [0x5de610]
test eax, eax
jne 0x46189c
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 0x46165c
mov edi, eax
call fcn.00444406
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.00438cf2
lea edi, [esi + 0x514]
push str.ODBC.c
push edi
call fcn.0048a998
pop ecx
pop ecx
mov esi, str.An_ODBC_handle_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.0048a823
mov eax, 0xdac
mov ecx, edi
call fcn.0048a810
mov eax, dword [ebp - 0x228]
call fcn.004609eb
mov eax, dword [ebp - 0x228]
jmp 0x461915
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004a8b98
ret