Function at 0x4277b0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x2184
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
jne 0x428036
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x219c]
test eax, eax
je 0x4277ea
cmp eax, 2
jne 0x427ab9
mov eax, dword [esp + 0x2198]
push 0
push 0
push 0x184
push 0x42c
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, dword [esp + 0x21a8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x21b4]
mov eax, dword [esp + 0x21a0]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045ad80
push ebx
push ebp
push 0x476ed38
lea ecx, [esp + 0x9a8]
push str.SELECT_idkcom_idchn_iddevice_comando_dati_FROM_GATC__sSTMT_WHERE_idstmt__s_and_idstmt__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x994]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x427ab9
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x427ab9
mov al, byte [ebp + 4]
test al, al
jne 0x427aa4
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 2
mov ecx, ebp
mov dword [esp + 0x18], eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
push 3
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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 + 0x24]
call fcn.00445280
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x1c]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x34]
push 5
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x90]
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 + 0x90]
push 0x46e08c
push ecx
call ebx
lea edx, [esp + 0x1194]
lea eax, [esp + 0x1994]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0045ae80
add esp, 0x10
mov esi, 0x47d10c
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4279e1
test cl, cl
je 0x4279dd
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4279e1
add eax, 2
add esi, 2
test cl, cl
jne 0x4279b9
xor eax, eax
jmp 0x4279e6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x427a11
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1194]
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]
mov ecx, dword [esp + 0x14]
mov eax, dword [0x476edd0]
cmp ecx, eax
je 0x427a36
lea edx, [esp + 0x194]
push str._t_t_t_t__
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x427a6f
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1194]
lea ecx, [esp + 0x1994]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0045ae50
add esp, 4
lea ecx, [esp + 0x1a0]
push eax
push str._03d_t_03d_t_s_t_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, dword [esp + 0x2198]
lea edx, [esp + 0x194]
push edx
push 0
push 0x180
push 0x42c
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x20]
mov al, byte [ebp + 4]
test al, al
je 0x4278b2
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x427ab9
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [esp + 0x219c]
test eax, eax
je 0x427acd
cmp eax, 1
jne 0x427d6c
mov eax, dword [esp + 0x2198]
push 0
push 0
push 0x184
push 0x427
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, dword [esp + 0x21a4]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x21b0]
mov eax, dword [esp + 0x21a0]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045ad80
push ebx
push ebp
push 0x476ed38
lea ecx, [esp + 0x9a8]
push str.SELECT_idkcom_idchn_iddevice_comando_dati_logtime_FROM_GATC__sSTMTLOG_WHERE_idstmt__s_AND_idstmt__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x994]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x427d6c
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x427d6c
mov al, byte [ebp + 4]
test al, al
jne 0x427d57
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 2
mov ecx, ebp
mov ebx, eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
push 3
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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 + 0x1c]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x24]
push 5
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x90]
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 + 0x24]
call fcn.00445280
lea ecx, [esp + 0x90]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 6
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.00445280
lea edx, [esp + 0x1194]
lea eax, [esp + 0x1994]
push edx
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x67], 0
call fcn.0045ae80
mov eax, dword [0x476edd0]
add esp, 0x10
cmp ebx, eax
je 0x427ce4
lea eax, [esp + 0x194]
push str._t_t_t_t_t__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x427d22
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1194]
lea edx, [esp + 0x1994]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.0045ae50
add esp, 4
lea edx, [esp + 0x50]
push eax
push edx
lea eax, [esp + 0x1a8]
push str._s_t_03d_t_03d_t_s_t_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov edx, dword [esp + 0x2198]
lea ecx, [esp + 0x194]
push ecx
push 0
push 0x180
push 0x427
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x20]
mov al, byte [ebp + 4]
test al, al
je 0x427b95
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x427d6c
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov eax, dword [esp + 0x219c]
test eax, eax
je 0x427d80
cmp eax, 3
jne 0x42802b
mov ecx, dword [esp + 0x2198]
push 0
push 0
push 0x184
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebp, dword [esp + 0x21ac]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x21b8]
mov eax, dword [esp + 0x21a0]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0045ad80
push ebp
push ebx
push 0x476ed38
lea ecx, [esp + 0x9a8]
push str.SELECT_idlogs_nlogs_dslogs_n1_n2_n3_datora_fromfile_FROM_GATG__sLOGS_WHERE_idlogs__s_and_idlogs__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x994]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42802b
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x42802b
mov al, byte [ebp + 4]
test al, al
jne 0x428016
mov eax, dword [ebp]
lea ecx, [esp + 0x58]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
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 + 0x58]
call fcn.00445280
mov edx, dword [ebp]
push 2
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x34]
mov ebx, eax
mov eax, dword [ebp]
push 3
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
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
mov edx, dword [ebp]
push 4
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
mov esi, eax
mov eax, dword [ebp]
push 5
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [ebp]
push 6
mov ecx, ebp
mov edi, eax
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
push 7
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [eax + 4]
push 0x13
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00445280
mov byte [esp + 0x57], 0
mov edx, dword [ebp]
push 8
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
cmp ebx, 1
je 0x427fcb
cmp esi, dword [0x476edd0]
jne 0x427fcb
cmp ebx, 5
jne 0x427f9a
test eax, eax
mov eax, 0x47cff8
jne 0x427f68
mov eax, 0x514f20
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0045ae50
add esp, 4
lea ecx, [esp + 0x70]
lea edx, [esp + 0x4c]
push eax
push ecx
push edx
lea eax, [esp + 0x1a8]
push str._s_t_s_tChannel:__03d___Device:__03d_t_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x427fe1
test eax, eax
mov eax, 0x47cff8
jne 0x427fa8
mov eax, 0x514f20
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x1a0]
push str._s_t_s_t_t_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x427fe1
lea ecx, [esp + 0x194]
push str._t_t_t__
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov eax, dword [esp + 0x2198]
lea edx, [esp + 0x194]
push edx
push 0
push 0x180
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x20]
mov al, byte [ebp + 4]
test al, al
je 0x427e48
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x42802b
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2184
ret