Function at 0x461146
Capabilities:
Terminate process

Disassembly:
push 0x758
push 0x4dfd98
call fcn.004a8980
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 0x4611bf
lea eax, [ebp - 0x240]
mov dword [ebp - 0x230], eax
mov edx, ebx
call fcn.00439c75
test eax, eax
jne 0x4614e0
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 0x4614e0
cmp dword [0x5de608], edi
jne 0x461201
mov dword [0x5de608], ebx
call fcn.004610b0
push edi
push edi
mov ecx, dword [ebp - 0x22c]
call fcn.00460ee0
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 0x461235
cmp ax, bx
je 0x461235
push esi
call fcn.00401a00
pop ecx
jmp 0x4614d9
push edi
push 3
push 0xc8
push dword [esi]
call dword [sym.imp.ODBC32.dll_SQLSetEnvAttr]
movzx eax, ax
cmp ax, di
je 0x46125d
cmp ax, bx
je 0x46125d
push dword [esi]
push ebx
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
jmp 0x461229
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 0x46127f
cmp ax, 1
je 0x46127f
push dword [esi]
push 1
jmp 0x461255
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.00438aa8
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 0x4613cd
cmp ax, 1
je 0x4613cd
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 [0x5de614], edi
jne 0x46137d
xor esi, esi
inc esi
mov dword [0x5de614], esi
push esi
push edi
push 2
pop ecx
call fcn.00460ee0
pop ecx
pop ecx
mov dword [0x5de60c], esi
push str.Data_source_name_not_found
call fcn.004605e0
push eax
call fcn.00439609
pop ecx
pop ecx
test eax, eax
je 0x461345
call fcn.00460510
mov dword [0x5de610], 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.00461146
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
jmp 0x4614e2
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 [0x5de60c], edi
cmp dword [0x5de610], edi
je 0x4614d9
push 1
push str.NeedAdminLogin.flg
push edi
call fcn.0045531b
pop ecx
pop ecx
mov ecx, eax
call fcn.00490158
jmp 0x46122f
cmp dword [0x5de60c], edi
je 0x4613db
mov dword [0x5de60c], edi
mov dword [0x5de610], edi
push str.NeedAdminLogin.flg
push edi
call fcn.0045531b
pop ecx
pop ecx
mov edi, eax
call fcn.0048e806
test eax, eax
je 0x46140c
push str.NeedAdminLogin.flg
push 0
call fcn.0045531b
pop ecx
pop ecx
call fcn.0048e8b7
lea edi, [esi + 0x40c]
push edi
push dword [ebx]
push 3
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
mov eax, dword [0x5de600]
test eax, eax
jne 0x461430
call fcn.00444328
mov dword [0x5de600], eax
push esi
mov ebx, eax
call fcn.004442d7
pop ecx
mov eax, dword [0x5de600]
test eax, eax
jne 0x461469
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 0x461229
mov edi, eax
call fcn.0044419c
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.00438b22
lea edi, [esi + 0x514]
push str.ODBC.c
push edi
call fcn.0048ac23
pop ecx
pop ecx
mov esi, str.An_ODBC_handle_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.0048aaae
mov eax, 0xdac
mov ecx, edi
call fcn.0048aa9b
mov eax, dword [ebp - 0x228]
call fcn.004605b8
mov eax, dword [ebp - 0x228]
jmp 0x4614e2
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004a89c8
ret