Function at 0x421520
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x1054
call fcn.0045ec70
push ebx
push ebp
push esi
push edi
push 0x46054d8
mov dword [esp + 0x30], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x476ed38
mov eax, dword [esp + 0x1078]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push eax
push 0x476ed38
push eax
mov eax, dword [esp + 0x10a4]
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
lea ecx, [esp + 0x8cc]
push str.SELECT_codd__ssubject15.idcompany_codd__ssubject15.idsubject_codd__ssubject15.idsystem_codd__ssubject15.idticket_codd__ssubject15.dtactivat_codd__ssubject15.lgokpres_codd__ssubject15.lgokticket_codd__ssubject15.lgokreplac_FROM_codd__ssubject15_GATC__sBADGE_WHERE_GATC__sBADGE.hextessera_s_AND_codd__ssubject15.dtactivat__s_AND_codd__ssubject15.dtexpirat__s_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
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x70
lea edx, [esp + 0x864]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [esp + 0x106c]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x421887
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x421887
mov al, byte [ebp + 4]
test al, al
jne 0x42186a
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x1068]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*8]
lea edx, [ebx*8]
sub edx, ebx
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
or ecx, 0xffffffff
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esp + 0x10], eax
lea edx, [edx + eax + 0x6574bc]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov ecx, ebx
mov edi, eax
shl ecx, 4
add edx, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + edx + 0x65759c]
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 edx, dword [ebp]
lea eax, [esp + 0x14]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov edi, eax
xor eax, eax
lea edx, [ecx + ebx*2]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + edx + 0x6577bc]
mov esi, edi
mov eax, ecx
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 edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [ebx + ebx*4]
add edx, ebx
mov edi, eax
xor eax, eax
lea edx, [edx + ecx*8 + 0x65781c]
or ecx, 0xffffffff
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 + 0x14]
call fcn.00445280
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 5
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00445280
lea edx, [esp + 0x64]
mov byte [esp + 0x77], 0
push edx
call fcn.0045be00
mov ecx, dword [esp + 0x14]
mov eax, ebx
shl eax, 5
sub eax, ebx
lea edx, [eax + ecx + 0x657d3c]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.0045be70
mov edx, dword [ebp]
add esp, 0xc
mov ecx, ebp
push 6
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
push 7
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x1078]
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 [ebp]
lea ecx, [esp + 0x14]
push 8
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x107c]
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 esi, 1
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x42187f
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test esi, esi
jne 0x421e23
push 0x476ed38
lea eax, [esp + 0x868]
push str.SELECT_qtchrbadge_FROM_cotg__scodifyrule_WHERE_idaccess1
push eax
mov dword [esp + 0x34], 0xf
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x864]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], 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 [0x476ecf4], eax
jne 0x421916
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x421916
mov al, byte [esi + 4]
test al, al
jne 0x421903
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x421916
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x1068]
mov ebp, 0x46f4c0
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2]
lea edi, [eax + eax*4]
shl edi, 5
mov dword [esp + 0x10], edi
lea esi, [edi + 0x6439f7]
mov cl, byte [esi]
mov dl, byte [ebp]
mov al, cl
cmp cl, dl
jne 0x42196a
test al, al
je 0x421966
mov dl, byte [esi + 1]
mov cl, byte [ebp + 1]
mov al, dl
cmp dl, cl
jne 0x42196a
add esi, 2
add ebp, 2
test al, al
jne 0x421941
xor eax, eax
jmp 0x42196f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421b00
mov dword [esp + 0x24], eax
push 0x476ed38
lea eax, [esp + 0x868]
push str.SELECT_krqtchrbadge_krqtidticket_FROM_GATG__sPARAGENE_WHERE_idparms1
push eax
mov ebp, 0xd
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x864]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], 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 [0x476ecf4], eax
jne 0x421a17
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x421a17
mov al, byte [esi + 4]
test al, al
jne 0x421a04
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [esi]
push 2
mov ecx, esi
mov ebp, eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x421a17
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov edi, 0x46f4b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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 [esp + 0x24]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x421ad9
mov esi, dword [esp + 0x1070]
lea ecx, [esi + 6]
push ecx
call fcn.0045aa10
add esp, 4
and eax, 0xffff
lea edx, [esi + 2]
push eax
push edx
call fcn.0045aa10
add esp, 4
and eax, 0xffff
push eax
push esi
call fcn.0045a970
add esp, 4
push eax
lea eax, [esp + 0x20]
push str._03d_05d_05d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x35]
or ecx, 0xffffffff
sub edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x30
push eax
push 0
call fcn.0045ab10
mov edi, dword [esp + 0x38]
add esp, 0x28
jmp 0x421b85
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1070]
lea ecx, [esp + 0x38]
push ecx
push edx
push 0x30
push eax
push 0
call fcn.0045ab10
mov edi, dword [esp + 0x24]
add esp, 0x14
jmp 0x421b85
mov esi, dword [esp + 0x1070]
push esi
call fcn.0045a970
push eax
lea ecx, [esp + 0x38]
push str._02d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esi + 2]
push edx
call fcn.0045a970
mov ebp, eax
lea eax, [esi + 4]
push eax
shl ebp, 8
call fcn.0045a970
lea ecx, [esi + 6]
add ebp, eax
push ecx
shl ebp, 8
call fcn.0045a970
add esi, 8
add ebp, eax
push esi
shl ebp, 8
call fcn.0045a970
add ebp, eax
lea edx, [esp + 0x84]
push ebp
push 0x47af20
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x98]
push 0x30
push edx
push 0
call fcn.0045ab10
add esp, 0x40
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1078]
push ecx
push eax
push eax
push 0x476ed38
lea edx, [esp + 0x878]
push str.SELECT_idcompany_idsubject_idsystem_idticket_dtactivat_lgokpres_lgokticket_lgokreplac_FROM_codd__ssubject15_WHERE_dtactivat__s_AND_dtexpirat__s_AND_idsystem_s_AND_idticket_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x864]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], 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 0x421e23
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x421e23
mov al, byte [ebp + 4]
test al, al
jne 0x421e0e
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea ecx, [ebx*8]
sub ecx, ebx
lea edx, [ecx + edi + 0x6574bc]
mov edi, dword [eax + 4]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00445280
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, ebx
xor eax, eax
shl ecx, 4
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + edx + 0x65759c]
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 edx, dword [ebp]
lea eax, [esp + 0x14]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [eax + 4]
xor eax, eax
lea edx, [ecx + ebx*2]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + edx + 0x6577bc]
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 edx, dword [ebp]
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [eax + 4]
lea ecx, [ebx + ebx*4]
add edx, ebx
xor eax, eax
lea edx, [edx + ecx*8 + 0x65781c]
or ecx, 0xffffffff
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 + 0x14]
call fcn.00445280
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 5
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [eax + 4]
push 0x13
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00445280
lea eax, [esp + 0x64]
mov byte [esp + 0x77], 0
push eax
call fcn.0045be00
mov edx, dword [esp + 0x14]
mov ecx, ebx
shl ecx, 5
sub ecx, ebx
lea eax, [ecx + edx + 0x657d3c]
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0045be70
mov edx, dword [ebp]
add esp, 0xc
mov ecx, ebp
push 6
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
push 7
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x1078]
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 [ebp]
push 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call dword [eax + 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 + 0x107c]
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 [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x421e23
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1054
ret