Function at 0x42a7b0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x8f4
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x42a7d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f4
ret
mov eax, dword [esp + 0x908]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x90c]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
lea eax, [esp + 0xb0]
shl esi, 2
lea ecx, [esp + 0x44]
mov edx, dword [esi + 0x65937c]
push edx
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x42a83f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f4
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x65609c]
xor eax, eax
test edx, edx
sete al
test eax, eax
mov dword [esp + 0x14], 0
je 0x42acae
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov ecx, dword [esp + 0x924]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0xd4]
push 0x476ed38
push edx
lea eax, [esp + 0xdc]
push 0x476ed38
push eax
push 0x476ed38
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0x154]
push str.SELECT_GATC__sBADGE.idcompany_GATC__sBADGE.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 edx
xor esi, esi
call ebp
add esp, 0x58
lea eax, [esp + 0x104]
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 ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42acae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x42acae
mov al, byte [ebx + 4]
test al, al
jne 0x42a9c3
mov edx, dword [ebx]
lea eax, [esp + 0x24]
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 + 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 + 0x24]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x24]
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 + 0x9c]
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 + 0x24]
call fcn.00445280
mov esi, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42a9d6
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test esi, esi
je 0x42acae
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x50]
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0x110]
push str.SELECT_idcomp_idsubj_idsystem_idticket_FROM_GATG__sDDRIVERS_WHERE_idcompany_s_AND_idsubject_s
push eax
call ebp
add esp, 0x14
lea edx, [esp + 0x104]
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 ebx, eax
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42acae
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x42acae
mov al, byte [ebx + 4]
test al, al
jne 0x42ac9b
mov ebp, dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x42ac9b
mov edx, dword [ebx]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
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 + 0x24]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x6c]
push 2
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
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 + 0x6c]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x8c]
push 3
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 + 0x8c]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x7c]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
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 + 0x7c]
call fcn.00445280
lea ecx, [esp + 0x1c]
push 0x46e08c
push ecx
call ebp
lea edx, [esp + 0x58]
push 0x46e08c
push edx
call ebp
lea eax, [esp + 0x10]
push 0x46e08c
push eax
call ebp
lea ecx, [esp + 0xd8]
push 0x46e08c
push ecx
call ebp
mov edi, 0x514f20
lea esi, [esp + 0x1c]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x42abc3
test al, al
je 0x42abbf
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x42abc3
add esi, 2
add edi, 2
test al, al
jne 0x42ab9b
xor eax, eax
jmp 0x42abc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ac89
mov edi, 0x514f20
lea esi, [esp + 0x58]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x42ac01
test al, al
je 0x42abfd
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x42ac01
add esi, 2
add edi, 2
test al, al
jne 0x42abd9
xor eax, eax
jmp 0x42ac06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ac89
mov edi, 0x514f20
lea esi, [esp + 0x10]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x42ac3b
test al, al
je 0x42ac37
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x42ac3b
add esi, 2
add edi, 2
test al, al
jne 0x42ac13
xor eax, eax
jmp 0x42ac40
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ac89
mov edi, 0x514f20
lea esi, [esp + 0xd8]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x42ac78
test al, al
je 0x42ac74
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x42ac78
add esi, 2
add edi, 2
test al, al
jne 0x42ac50
xor eax, eax
jmp 0x42ac7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42ac89
mov dword [esp + 0x14], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x20]
mov al, byte [ebx + 4]
test al, al
je 0x42aa5b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
test ebx, ebx
je 0x42acae
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 + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f4
ret