Function at 0x42a140
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x8f8
lea ecx, [eax + eax*2]
push ebx
push ebp
push esi
lea ecx, [ecx + ecx*8]
push edi
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x910]
lea esi, [ecx + edx*8]
shl esi, 2
mov edx, dword [esi + 0x65601c]
test edx, edx
je 0x42a19c
mov edx, dword [esp + 0x918]
push edx
mov edx, dword [esp + 0x918]
push edx
push ecx
push eax
call fcn.004293d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f8
ret
mov eax, dword [0x476ecf4]
test eax, eax
je 0x42a1b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f8
ret
mov eax, dword [esi + 0x65937c]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x42a1f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f8
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 0x65621c]
mov dword [esp + 0x10], 0
test esi, esi
jle 0x42a338
dec esi
je 0x42a230
dec esi
jne 0x42a788
mov dword [esp + 0x10], 1
jmp 0x42a788
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov edx, dword [esp + 0x92c]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x90]
push 0x476ed38
push eax
mov eax, dword [esp + 0x940]
lea ecx, [esp + 0x98]
push 0x476ed38
push ecx
push 0x476ed38
push edx
push 0x476ed38
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x164]
push str.SELECT_codd__ssubject15.idcompany_codd__ssubject15.idsubject_FROM_GATC__sBADGE__codd__ssubject15_WHERE_GATC__sBADGE.hextessera_s_AND_GATC__sBADGE.refbadgelock1_AND_GATC__sBADGE.idexport_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, 0x64
lea edx, [esp + 0x108]
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42a788
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x42a788
mov al, byte [esi + 4]
test al, al
jne 0x42a31c
mov dword [esp + 0x10], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x42a788
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x42a788
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov edx, dword [esp + 0x92c]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x90]
push 0x476ed38
push eax
lea ecx, [esp + 0x98]
push 0x476ed38
push ecx
push 0x476ed38
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x158]
push str.SELECT_codd__ssubject15.idcompany_codd__ssubject15.idsubject_FROM_GATC__sBADGE__codd__ssubject15_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 eax
xor esi, esi
call ebp
add esp, 0x58
lea edx, [esp + 0x108]
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 ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42a788
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x42a788
mov al, byte [ebx + 4]
test al, al
jne 0x42a494
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push 1
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 + 0x50]
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 + 0x18]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x18]
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 + 0xa8]
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 + 0x18]
call fcn.00445280
mov esi, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42a4a7
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test esi, esi
je 0x42a788
push 0x476ed38
mov ecx, dword [esp + 0x918]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push ecx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0x154]
push str.SELECT_codd__ssubject15.idcompany_codd__ssubject15.idsubject_codd__ssubject15.idsystem_codd__ssubject15.idticket_codd__ssubject15.dtactivat_FROM_GATC__sBADGE_codd__ssubject15_WHERE_GATC__sBADGE.hextessera_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_ORDER_BY_dtactivat_DESC
push edx
xor esi, esi
call ebp
add esp, 0x54
lea eax, [esp + 0x108]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], 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 0x42a788
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x42a788
mov al, byte [ebx + 4]
test al, al
jne 0x42a6c5
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push 1
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 + 0x48]
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 + 0x18]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x18]
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 + 0x94]
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 + 0x18]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push 3
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 + 0x28]
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 + 0x18]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov eax, dword [eax + 4]
lea edx, [esp + 0xdc]
mov edi, eax
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 + 0x18]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push 5
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00445280
lea edx, [esp + 0x58]
mov byte [esp + 0x6b], 0
push edx
call fcn.0045be00
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.0045be70
add esp, 0xc
mov esi, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42a6d8
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test esi, esi
je 0x42a788
lea ecx, [esp + 0xbc]
lea edx, [esp + 0xdc]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0xb8]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x128]
push str.SELECT_idcompany_FROM_GATG__sDDRIVERS_WHERE_idcompany_s_AND_idsubject_s_AND_idcomp_s_AND_idsubj_s_AND_idsystem_s_AND_idticket_s_AND_dtactivat_s
push edx
call ebp
add esp, 0x28
lea eax, [esp + 0x108]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42a788
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test al, al
jne 0x42a788
mov al, byte [esi + 4]
test al, al
jne 0x42a775
mov dword [esp + 0x10], 1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x42a788
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f8
ret