Function at 0x413e20
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46a826
push eax
mov eax, 0x10cc
mov dword fs:[0], esp
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x413e53
xor eax, eax
jmp 0x4146ba
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x514f20
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x476ed38
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x476ed38
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x476ed38
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x476ed38
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov ecx, eax
mov eax, dword [esp + 0x1110]
push 0x476ed38
push 0x476ed38
and ecx, 3
push 0x476ed38
push 0x476ed38
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1120]
push 0x476ed38
push eax
push 0x476ed38
push ecx
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea edx, [esp + 0x144]
push str.SELECT_GATC__sCOMPANY.flctrlret_GATC__sBADGE.idcompany_GATC__sBADGE.idsubject_codd__ssubject15.dtactivat_codd__ssubject15.dtexpirat_FROM_GATC__sBADGE_codd__ssubject15_GATC__sCOMPANY_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_AND_codd__ssubject15.idcompanyGATC__sCOMPANY.idcompany
push edx
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 0
call ebx
add esp, 0x70
lea eax, [esp + 0xdc]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
xor esi, esi
cmp ebp, esi
sete al
cmp eax, esi
mov dword [0x476ecf4], eax
jne 0x4141bf
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x4141bf
mov al, byte [ebp + 4]
test al, al
jne 0x414171
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push 2
push ecx
mov ecx, ebp
call dword [eax + 0x14]
lea edx, [esp + 0x6c]
push 0x20
push edx
mov ecx, eax
mov dword [esp + 0x10ec], esi
call fcn.004453e0
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 + 0x20]
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
lea ecx, [esp + 0x48]
mov dword [esp + 0x10e4], 0xffffffff
call fcn.00445280
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x20]
push 0x46e08c
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x6c]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea ecx, [esp + 0x48]
push 0x20
push ecx
mov ecx, eax
mov dword [esp + 0x10ec], 1
call fcn.004453e0
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 + 0x58]
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 + 0x48]
call fcn.00445280
lea ecx, [esp + 0x6c]
mov dword [esp + 0x10e4], 0xffffffff
call fcn.00445280
push 0x46e08c
lea ecx, [esp + 0x5c]
push ecx
call ebx
mov edx, dword [ebp]
lea eax, [esp + 0x48]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0x8e0]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00445280
lea edx, [esp + 0x8dc]
mov byte [esp + 0x8ef], 0
push edx
call fcn.0045be00
lea eax, [esp + 0x90]
lea ecx, [esp + 0x8e0]
push eax
push ecx
call fcn.0045be70
mov edx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x48]
mov ecx, ebp
push 5
push eax
call dword [edx + 0x14]
mov eax, dword [eax + 4]
push 0x13
lea ecx, [esp + 0x8e0]
push eax
push ecx
call fcn.0045eb70
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00445280
lea edx, [esp + 0x8dc]
mov byte [esp + 0x8ef], 0
push edx
call fcn.0045be00
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x8e0]
push eax
push ecx
call fcn.0045be70
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x414186
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4144b0
mov esi, 0x514f20
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4141c8
test cl, cl
je 0x4141bb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4141c8
add eax, 2
add esi, 2
test cl, cl
jne 0x41419b
xor eax, eax
jmp 0x4141cd
mov dword [esp + 0x10], esi
jmp 0x4146ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4146ab
mov esi, 0x514f20
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x414202
test cl, cl
je 0x4141fe
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x414202
add eax, 2
add esi, 2
test cl, cl
jne 0x4141de
xor eax, eax
jmp 0x414207
sbb eax, eax
sbb eax, 0xffffffff
xor ebp, ebp
cmp eax, ebp
je 0x4146ab
lea eax, [esp + 0x58]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0xe8]
push str.SELECT_iddivisione_idreparti_idqualifica_FROM_GATG__sKINDSUBJECT_WHERE_idcompany_s_AND_idsubject_s
push edx
xor edi, edi
mov dword [esp + 0x30], ebp
call ebx
add esp, 0x14
lea eax, [esp + 0xdc]
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4146a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test al, al
jne 0x4146a3
mov al, byte [esi + 4]
test al, al
jne 0x4142b9
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
call fcn.0045f9d8
mov edi, eax
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov edx, dword [esi]
push 3
mov ecx, esi
mov ebp, eax
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x4142cc
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
test edi, edi
jle 0x41436c
push edi
push 0x476ed38
lea eax, [esp + 0xe4]
push str.SELECT_flctrlret_FROM_GATG__sDIVISIONE_WHERE_iddivisione_d
push eax
call ebx
add esp, 0x10
lea edx, [esp + 0xdc]
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4146a3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x4146a3
mov al, byte [esi + 4]
test al, al
jne 0x41434d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x414360
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4144b0
test ebp, ebp
jle 0x41440c
push ebp
push 0x476ed38
lea ecx, [esp + 0xe4]
push str.SELECT_flctrlret_FROM_GATG__sREPARTI_WHERE_idreparti_d
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0xdc]
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4146a3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x4146a3
mov al, byte [esi + 4]
test al, al
jne 0x4143ed
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x414400
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4144b0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4146ab
push eax
push 0x476ed38
lea ecx, [esp + 0xe4]
push str.SELECT_flctrlret_FROM_GATG__sQUALIFICA_WHERE_idqualifica_d
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0xdc]
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4146a3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x4146a3
mov al, byte [esi + 4]
test al, al
jne 0x414491
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x4144a4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4146ab
mov eax, dword [esp + 0x10ec]
lea ecx, [esp + 0xb4]
push 0x476ed38
push ecx
lea edx, [esp + 0x94]
push 0x476ed38
push edx
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x100]
push str.SELECT_MAX_GATC__sTRANS.datora__FROM_GATC__sTRANS_WHERE_GATC__sTRANS.BADGE_s_AND_GATC__sTRANS.datora__s_AND_GATC__sTRANS.datora__s_AND_GATC__sTRANS.idarea1
push ecx
call ebx
add esp, 0x2c
lea edx, [esp + 0xdc]
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 ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4146a3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x4146a3
mov al, byte [ebp + 4]
test al, al
jne 0x414684
mov eax, dword [ebp]
lea ecx, [esp + 0x7c]
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 + 0x8dc]
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 + 0x38]
lea edx, [esp + 0x8dc]
push ecx
push edx
call fcn.0045cb50
mov eax, dword [esp + 0x1100]
mov ecx, dword [esp + 0x10fc]
push eax
push ecx
lea edx, [esp + 0x8ec]
push str.20_s_s
push edx
call ebx
lea eax, [esp + 0x8f4]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0045a830
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.0045a780
mov edx, dword [0x476edcc]
mov ecx, dword [esp + 0x38]
lea esi, [eax + edx]
mov edx, dword [esp + 0x3c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0045a780
add esp, 0x10
cmp eax, esi
jb 0x414684
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0045a780
mov ecx, dword [0x476edc8]
mov edx, esp
lea esi, [eax + ecx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.0045a780
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x10], 0
jbe 0x41468c
mov dword [esp + 0x10], 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x4146ab
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x4146ab
mov dword [esp + 0x10], 0
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10dc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10d8
ret