Function at 0x45fdfb
Capabilities:
Terminate process

Disassembly:
push 0x758
push 0x4d56c8
call fcn.004a2b10
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 0x45fe74
lea eax, [ebp - 0x240]
mov dword [ebp - 0x230], eax
mov edx, ebx
call fcn.00439c56
test eax, eax
jne 0x460195
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 0x460195
cmp dword [0x5d0b54], edi
jne 0x45feb6
mov dword [0x5d0b54], ebx
call fcn.0045fd65
push edi
push edi
mov ecx, dword [ebp - 0x22c]
call fcn.0045fb96
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 0x45feea
cmp ax, bx
je 0x45feea
push esi
call fcn.00401a00
pop ecx
jmp 0x46018e
push edi
push 3
push 0xc8
push dword [esi]
call dword [sym.imp.ODBC32.dll_SQLSetEnvAttr]
movzx eax, ax
cmp ax, di
je 0x45ff12
cmp ax, bx
je 0x45ff12
push dword [esi]
push ebx
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
jmp 0x45fede
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 0x45ff34
cmp ax, 1
je 0x45ff34
push dword [esi]
push 1
jmp 0x45ff0a
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.00438b01
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 0x460082
cmp ax, 1
je 0x460082
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 [0x5d0b60], edi
jne 0x460032
xor esi, esi
inc esi
mov dword [0x5d0b60], esi
push esi
push edi
push 2
pop ecx
call fcn.0045fb96
pop ecx
pop ecx
mov dword [0x5d0b58], esi
push str.Data_source_name_not_found
call fcn.0045f2fc
push eax
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x45fffa
call fcn.0045f21c
mov dword [0x5d0b5c], 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.0045fdfb
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
jmp 0x460197
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 [0x5d0b58], edi
cmp dword [0x5d0b5c], edi
je 0x46018e
push 1
push str.NeedAdminLogin.flg
push edi
call fcn.004541af
pop ecx
pop ecx
mov ecx, eax
call fcn.0048dd29
jmp 0x45fee4
cmp dword [0x5d0b58], edi
je 0x460090
mov dword [0x5d0b58], edi
mov dword [0x5d0b5c], edi
push str.NeedAdminLogin.flg
push edi
call fcn.004541af
pop ecx
pop ecx
mov edi, eax
call fcn.0048c243
test eax, eax
je 0x4600c1
push str.NeedAdminLogin.flg
push 0
call fcn.004541af
pop ecx
pop ecx
call fcn.0048c2f4
lea edi, [esi + 0x40c]
push edi
push dword [ebx]
push 3
call dword [sym.imp.ODBC32.dll_SQLAllocHandle]
mov eax, dword [0x5d0b4c]
test eax, eax
jne 0x4600e5
call fcn.004439f3
mov dword [0x5d0b4c], eax
push esi
mov ebx, eax
call fcn.004439a2
pop ecx
mov eax, dword [0x5d0b4c]
test eax, eax
jne 0x46011e
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 0x45fede
mov edi, eax
call fcn.00443867
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.00438b7b
lea edi, [esi + 0x514]
push str.ODBC.c
push edi
call fcn.00488834
pop ecx
pop ecx
mov esi, str.An_ODBC_handle_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.004886bf
mov eax, 0xdac
mov ecx, edi
call fcn.004886ac
mov eax, dword [ebp - 0x228]
call fcn.0045f2d4
mov eax, dword [ebp - 0x228]
jmp 0x460197
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004a2b58
ret