Function at 0x41aad0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x1034
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x41aaf4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1034
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1050]
push 4
add eax, 6
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.0045eb70
mov ebx, dword [esp + 0x1054]
mov edi, str.000101000000
mov byte [esp + 0x20], 0
lea eax, [ebx + ebx*2]
lea edx, [eax + eax*8]
lea eax, [ebx + edx*8]
lea eax, [eax + eax*2]
lea ebp, [ebx + eax*2]
mov eax, dword [esp + 0x1058]
lea ebp, [ebp + ebp*4]
lea ecx, [eax + eax*2]
shl ebp, 5
lea edx, [eax + ebp]
xor eax, eax
lea edx, [edx + ecx*4 + 0x655c9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
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]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045a970
lea edx, [esp + 0x22]
mov esi, eax
push edx
shl esi, 8
call fcn.0045a970
lea ecx, [esi + eax - 1]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
lea edx, [eax + eax*2]
lea ebx, [ebx + edx*2]
mov edx, dword [esp + 0x1060]
lea eax, [ebx + ebx*4]
lea eax, [edx + eax*8]
mov edx, dword [eax*4 + 0x654914]
mov eax, dword [ebp + 0x643944]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edx
mov edx, dword [0x476edd0]
push eax
push edx
push ecx
push 0x476ed38
lea eax, [esp + 0x6c]
push str.SELECT_datora_FROM_GATC__sTRANS_WHERE_ntrans_04x_AND_kcom_d_AND_channel_d_AND_device_d
push eax
call ebp
add esp, 0x30
lea edx, [esp + 0x44]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x41acf5
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x41acf5
mov al, byte [ebx + 4]
test al, al
jne 0x41ace2
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push 1
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x844]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [esp + 0x34]
call fcn.00445280
lea ecx, [esp + 0x20]
lea edx, [esp + 0x844]
push ecx
push edx
call fcn.0045cb50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x32]
mov edx, dword [esp + 0x30]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x32]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x32]
and eax, 0xffff
push edx
push eax
mov eax, dword [esp + 0x38]
and ecx, 0xffff
and eax, 0xffff
push ecx
mov ecx, 0x64
cdq
idiv ecx
push edx
mov edx, dword [esp + 0x3c]
push str._02d_02d_02d_02d_02d_02d
push edx
call ebp
add esp, 0x28
mov dword [esp + 0x18], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
test ebx, ebx
je 0x41acf5
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1034
ret