Function at 0x42e3a0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x10cc
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x42e3c4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10cc
ret
mov ebp, dword [esp + 0x10e8]
mov esi, 0x514f20
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x42e3fa
test cl, cl
je 0x42e3f6
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x42e3fa
add eax, 2
add esi, 2
test cl, cl
jne 0x42e3d2
xor eax, eax
jmp 0x42e3ff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42e413
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10cc
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x476030
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
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 esi, dword [esp + 0x10f0]
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.0045eb70
lea edx, [esi + 2]
push 2
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x36], 0
call fcn.0045eb70
lea ecx, [esi + 4]
push 2
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x3a], 0
call fcn.0045eb70
lea eax, [esi + 6]
push 2
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x42], 0
call fcn.0045eb70
add esi, 8
push 2
lea edx, [esp + 0x54]
push esi
push edx
mov byte [esp + 0x56], 0
call fcn.0045eb70
mov eax, dword [esp + 0x112c]
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0xdc]
push eax
push ecx
mov byte [esp + 0x7e], 0
call fcn.00414fa0
add esp, 0x5c
lea edx, [esp + 0x88]
lea eax, [esp + 0x88]
push ebp
push 0x476ed38
push edx
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x138]
push str.SELECT_codd__ssubject15.idcompany_codd__ssubject15.idsubject_codd__ssubject15.idsystem_codd__ssubject15.idticket_codd__ssubject15.dtactivat_FROM_codd__ssubject15_GATC__sBADGE_WHERE_codd__ssubject15.idcompanyGATC__sBADGE.idcompany_AND_codd__ssubject15.idsubjectGATC__sBADGE.idsubject_AND_codd__ssubject15.idsystemGATC__sBADGE.idsystem_AND_codd__ssubject15.idticketGATC__sBADGE.idticket_AND_codd__ssubject15.dtactivatGATC__sBADGE.dtactivat_AND_codd__ssubject15.dtactivat__s_AND_codd__ssubject15.dtexpirat__s_AND_GATC__sBADGE.hextessera_s
push ecx
call esi
add esp, 0x64
lea edx, [esp + 0xdc]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], 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 0x42e764
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x42e764
mov al, byte [ebp + 4]
test al, al
jne 0x42e74f
mov eax, dword [ebp]
lea ecx, [esp + 0x30]
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 + 0x40]
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 + 0x30]
call fcn.00445280
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x40]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x30]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
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 + 0x30]
call fcn.00445280
lea ecx, [esp + 0x48]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x30]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
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 + 0x30]
call fcn.00445280
lea ecx, [esp + 0x24]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x30]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
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 + 0x30]
call fcn.00445280
lea ecx, [esp + 0x5c]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x30]
push 5
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [eax + 4]
push 0x13
lea edx, [esp + 0x8e0]
push ecx
push edx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00445280
lea eax, [esp + 0x8dc]
mov byte [esp + 0x8ef], 0
push eax
call fcn.0045be00
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x8e0]
push ecx
push edx
call fcn.0045be70
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x42e764
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0xf4]
push str.UPDATE_codd__ssubject15_SET_lgokaccess0_WHERE_idcompany_s_AND_idsubject_s_AND_idsystem_s_AND_idticket_s_AND_dtactivat_s
push eax
call esi
add esp, 0x10
lea edx, [esp + 0xec]
mov ecx, esp
mov dword [esp + 0x38], 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 edi, ecx
test edi, edi
je 0x42e81a
lea edx, [esp + 0x48]
lea eax, [esp + 0x40]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0xe8]
push str.DELETE_FROM_GATG__sDDRIVERS_WHERE_idcompany_s_AND_idsubject_s
push ecx
call esi
add esp, 4
lea edx, [esp + 0xec]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x42e825
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10cc
ret