Function at 0x428a80
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x185c
call fcn.0045ec70
mov eax, dword [esp + 0x186c]
push ebx
push ebp
push esi
cmp eax, 2
push edi
jne 0x428b94
or ecx, 0xffffffff
mov edi, 0x514f20
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1880]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x514f20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1888]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x514f20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x188c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1890]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1894]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1898]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x185c
ret
mov eax, dword [0x476ecf4]
test eax, eax
je 0x428baa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x185c
ret
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x428beb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x185c
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ecx, 0xffffffff
mov edi, 0x514f20
xor eax, eax
mov ebp, dword [esp + 0x1888]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
mov dword [esp + 0x14], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x514f20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1890]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1894]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1898]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x70]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x189c]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1880]
mov eax, dword [esp + 0x187c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1888]
push ecx
push edx
push eax
mov ecx, dword [esp + 0x1884]
push ecx
call fcn.0045e3c0
lea edx, [esp + 0x84]
lea eax, [esp + 0x5c]
push edx
push 0x476ed38
push eax
lea ecx, [esp + 0x68]
push 0x476ed38
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 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0x900]
push str.SELECT_codd__ssubject00.ansurnam_codd__ssubject00.anname_coda__scompany00.dscompany_codd__ssubject00.idsubject_GATC__sBADGE.datiextra_FROM_coda__scompany00_codd__ssubject00_codd__ssubject15_GATC__sBADGE_WHERE_coda__scompany00.idcompanycodd__ssubject00.idcompany_AND_codd__ssubject00.idcompanycodd__ssubject15.idcompany_AND_codd__ssubject00.idsubjectcodd__ssubject15.idsubject_AND_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 edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x9c
lea eax, [esp + 0x86c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x429065
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x429065
mov al, byte [ebx + 4]
test al, al
jne 0x428ffc
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
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 + 0x6c]
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 + 0x14]
call fcn.00445280
mov ebp, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x6c]
push 0x46e08c
push ecx
call ebp
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, ebx
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 + 0x106c]
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 + 0x14]
call fcn.00445280
lea ecx, [esp + 0x106c]
push 0x46e08c
push ecx
call ebp
mov ecx, dword [esp + 0x188c]
lea edx, [esp + 0x106c]
lea eax, [esp + 0x6c]
push edx
push eax
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebx]
add esp, 0x10
lea eax, [esp + 0x14]
push 3
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1890]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
mov eax, dword [esp + 0x1890]
push 0x46e08c
push eax
call ebp
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1894]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
mov eax, dword [esp + 0x1894]
push 0x46e08c
push eax
call ebp
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push 5
push eax
mov ecx, ebx
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 + 0x6c]
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 + 0x14]
call fcn.00445280
lea ecx, [esp + 0x6c]
push 0x46e08c
push ecx
call ebp
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jl 0x428ffc
push 1
lea edx, [esp + 0x70]
push 0x4779f0
push edx
call fcn.0045f690
add esp, 0xc
test eax, eax
jne 0x428ffc
mov edi, str.BADGE_MAINTENANCE_EXECUTED
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x1884]
mov eax, ecx
jmp 0x429046
mov edi, str.Select_write_button_to_maintain_badge
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1884]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1880]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x1898]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x429065
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov ecx, dword [esp + 0x1880]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push 0x476ed38
lea edx, [esp + 0x874]
push str.SELECT_datora_FROM_GATC__sBADGEWRITE_WHERE_codtessera_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x86c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x429120
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x429120
mov al, byte [ebx + 4]
test al, al
jne 0x42910d
mov ebp, dword [esp + 0x1898]
mov ecx, dword [esp + 0x1884]
push ebp
push str.BADGE_WRITE_EXECUTED:__s
push ecx
call esi
mov edi, 0x514f20
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
test ebx, ebx
je 0x429120
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 + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x185c
ret