Function at 0x425fb0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x854
test eax, eax
push ebx
push esi
push edi
je 0x425fce
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x854
ret
mov ebx, dword [esp + 0x870]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str.SQL_Server
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x517fac
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045f6d0
add esp, 8
test eax, eax
jne 0x426047
push str.SQL_Native_Client
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x42604e
mov esi, 0x12
jmp 0x426052
mov esi, dword [esp + 0xc]
push str.PostgreSQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x42606d
mov esi, 0x12
push str.Oracle
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x426088
mov esi, 0x1b
push str.MySQL
push 0x517fac
call fcn.0045f6d0
add esp, 8
test eax, eax
je 0x4260a3
mov esi, 0x12
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 2]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jle 0x4260db
push 2
lea eax, [esp + esi + 0x3c]
push 0x46f4b4
push eax
call fcn.0045eb70
push 2
lea ecx, [esp + esi + 0x20]
push 0x47602c
push ecx
call fcn.0045eb70
add esp, 0x18
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x86c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x86c]
mov edx, dword [esp + 0x87c]
push ecx
lea ecx, [eax + eax*2]
push edx
xor edi, edi
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x878]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov edx, dword [ecx*4 + 0x654914]
lea ecx, [eax + eax*2]
push edx
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [0x476edd0]
lea eax, [eax + eax*4]
shl eax, 5
mov ecx, dword [eax + 0x643944]
lea eax, [esp + 0x74]
push ecx
push edx
push 0x476ed38
push str.SELECT_idtrans_FROM_GATC__sTRANS_WHERE_kcom_d_AND_channel_d_AND_device_d_AND_versus_s_AND_badge_s_AND_datora__s_AND_datora__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea edx, [esp + 0x60]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4261c4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x4261c4
mov al, byte [esi + 4]
test al, al
jne 0x4261b1
mov edi, 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x4261c4
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x854
ret