Function at 0x435ca0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x48c98
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x435cc4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c98
ret
mov ecx, dword [esp + 0x48cb4]
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.0045be70
add esp, 8
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebx, dword [esp + 0x48cb8]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebx + 0x44]
lea ecx, [ebx + 0x1b]
lea edx, [ebx + 0x18]
push eax
lea esi, [ebx + 7]
push ecx
push edx
lea edi, [ebx + 0x120]
push esi
push ebx
push edi
push 0x476ed38
lea eax, [esp + 0x84]
push str.UPDATE_GATC__sBADGE_SET_dtexpauth_s_WHERE_idcompany_s_AND_idsubject_s_AND_idsystem_s_AND_idticket_s_AND_dtactivat_s
push eax
call ebp
add esp, 0x14
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov esi, ecx
test esi, esi
mov dword [esp + 0x1c], esi
je 0x436346
mov edi, str.000000000000001
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x476ed38
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SELECT_MAX_idstmt__FROM_GATC__sSTMT
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x18], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x68]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], 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 0x435e36
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x435e36
mov al, byte [ebp + 4]
test al, al
jne 0x435e21
mov eax, dword [ebp]
lea ecx, [esp + 0x30]
push 1
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x20]
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 + 0x30]
call fcn.00445280
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x435e36
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [ebx + 0xf4]
lea edx, [esp + 0x68]
push ecx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push str.SELECT_GATC__sMODE.kcom_GATC__sMODE.channel_GATD__sDEVICE.iddevice_GATC__sMODE.time_GATC__sMODE.motorized_FROM_GATC__sMODE_GATD__sDEVICE_GATC__sKCOM_WHERE_GATC__sMODE.kcomGATD__sDEVICE.idkcom_AND_GATC__sMODE.channelGATD__sDEVICE.cntchannel_AND_GATC__sMODE.deviceGATD__sDEVICE.cproword_AND_GATD__sDEVICE.statusX_AND_GATD__sDEVICE.flctrlauth1_AND_GATC__sMODE.kcomGATC__sKCOM.idpckcom_AND_GATC__sMODE.channelGATC__sKCOM.cproword_AND__GATC__sKCOM.idtypeOF_OR_GATC__sKCOM.idtypeOD__AND_GATC__sMODE.idmode_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x68
lea eax, [esp + 0x68]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4360f1
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x4360f1
mov al, byte [ebp + 4]
test al, al
jne 0x4360dc
lea esi, [esp + 0x868]
mov dword [esp + 0x14], esi
jmp 0x435f25
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0x3e8
jge 0x4360dc
lea ecx, [esp + 0x20]
push ecx
call fcn.0045fb51
fiadd dword [esp + 0x14]
push ecx
fadd qword [0x46b3a0]
fstp qword [esp]
push str._.0f
push esi
call fcn.0045faff
push 0xf
push esi
call fcn.0045acd0
mov edx, dword [ebp]
add esp, 0x18
mov ecx, ebp
push 1
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esi + 0x10], eax
mov eax, dword [ebp]
push 2
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esi + 0x14], eax
mov edx, dword [ebp]
push 3
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x48cbc]
test eax, eax
lea edx, [esi + 0x1c]
je 0x43606a
mov edi, 0x46f4f0
or ecx, 0xffffffff
xor eax, eax
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
mov eax, dword [ebx + 0x104]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x435fdc
mov esi, 1
jmp 0x435fe9
mov esi, dword [ebx + 0x108]
neg esi
sbb esi, esi
and esi, 2
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x436004
mov edx, dword [ebp]
push 4
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
jmp 0x436011
mov eax, dword [ebx + 0x114]
neg eax
sbb eax, eax
and eax, 8
mov ecx, dword [ebx + 0x10c]
mov edx, dword [ebp]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push esi
push eax
push 4
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
push eax
mov eax, dword [ebx + 0x100]
lea ecx, [ebx + 0x158]
push eax
lea edx, [ebx + 0xf8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [ebx + 0xe8]
push str.0000000000
push eax
add ecx, 0x23
push str._s_s_s_s_04d_02X0_X_X_X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
jmp 0x4360a9
mov edi, 0x47aa20
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add edx, 0x23
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0xe8]
push ecx
push 0x47aa1c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc edx
mov ecx, ebp
mov dword [eax + 0x124], 2
add eax, 0x128
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov dword [esp + 0x10], edx
call dword [eax + 0x20]
mov al, byte [ebp + 4]
test al, al
je 0x435f21
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x4360f1
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x436181
lea esi, [esp + 0x88b]
mov ecx, dword [esp + 0x48cb4]
mov edx, dword [esi + 0x101]
push ecx
mov ecx, dword [esi - 0xb]
push edx
mov edx, dword [esi - 0xf]
lea eax, [esi - 7]
push esi
push eax
mov eax, dword [esi - 0x13]
push ecx
push edx
lea ecx, [esi - 0x23]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x8c]
push str.INSERT_INTO_GATC__sSTMT__idstmt__idkcom__idchn__iddevice__comando__dati__npriority__executing__datora__cpccchk__VALUES___s__d__d__d__s__s__d_0__s_foostrings_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, dword [esi - 0xb]
mov ecx, dword [esi - 0xf]
mov edx, dword [esi - 0x13]
push eax
mov eax, dword [0x476edd0]
push ecx
push edx
push eax
call fcn.00459540
add esp, 0x10
add esi, 0x128
dec edi
jne 0x436104
push 0x476ed38
lea ecx, [esp + 0x6c]
push str.SELECT_MAX_idlogs__FROM_GATC__sDEVALARMLOGS
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x68]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], 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 [esp + 0x18], esi
mov dword [0x476ecf4], eax
jne 0x436335
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x436335
mov al, byte [esi + 4]
test al, al
jne 0x436322
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov esi, dword [esp + 0x48cbc]
inc eax
test esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.CONCESSIONE_AUTORIZZAZIONE
jne 0x43621b
mov dword [esp + 0x10], str.REVOCA_AUTORIZZAZIONE
mov eax, dword [esp + 0x48cac]
mov edi, dword [esp + 0x48cb0]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
lea edx, [eax + eax*2]
lea edx, [edx + edx*8]
lea ecx, [ecx + ecx*4]
lea edx, [eax + edx*8]
lea ecx, [edi + ecx*8]
shl ecx, 2
lea edx, [edx + edx*2]
lea edi, [edi + edi*4]
lea eax, [eax + edx*2]
lea edx, [ebx + 0x15f]
push edx
lea edx, [ebx + 0x120]
push edx
mov edx, dword [ecx + 0x675960]
mov ecx, dword [ecx + 0x654914]
lea eax, [eax + eax*4]
lea ebp, [edx + edx*2]
shl ebp, 4
add ebp, edx
shl eax, 5
mov edx, dword [ebp*4 + 0x517038]
push edx
lea edx, [edi + edi*4]
lea edx, [eax + edx*2 + 0x654a14]
push edx
mov edx, dword [eax + 0x643944]
mov eax, dword [0x476edd0]
push ecx
push edx
lea ecx, [ebx + 0xbf]
push eax
lea edx, [ebx + 0x80]
push ecx
lea eax, [ebx + 0x44]
push edx
push eax
lea eax, [ebx + 0x1b]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 7]
push eax
push ebx
add ebx, 0xe8
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x80]
neg esi
sbb esi, esi
push eax
push 0x559d7c
add esi, 3
push ecx
push esi
push edx
push 0x476ed38
lea eax, [esp + 0xc0]
push str.INSERT_INTO_GATC__sDEVALARMLOGS__idlogs_nlogs_dslogs_usercode_username_ipaddress_datora_cpccchk_hextessera_idcompany_idsubject_idsystem_idticket_dtactivat_dtexpirat_prevdtexpirat_kcom_channel_iddevice_desdevice_nhourauth_dtexpauth_prevdtexpauth__VALUES___d__d__s_0_KCOM__s__s__010lu__s__s__s__s__s__s__s__s__d__d__d__s__d__s__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x50
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x436335
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x436351
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c98
ret