Function at 0x42ee00
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x6238
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x42ee26
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6238
ret
mov al, byte [esp + 0x6254]
cmp al, 0x30
jne 0x42ee69
mov eax, dword [esp + 0x624c]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x6250]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
shl eax, 2
mov edx, dword [eax + 0x65847c]
mov ebx, dword [eax + 0x6582fc]
mov dword [esp + 0x14], edx
jmp 0x42eee7
cmp al, 0x31
jne 0x42eea5
mov eax, dword [esp + 0x624c]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*8]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x6250]
lea eax, [eax + edx*8]
shl eax, 2
mov ebx, dword [eax + 0x65837c]
mov eax, dword [eax + 0x6584fc]
mov dword [esp + 0x14], eax
jmp 0x42eee7
cmp al, 0x32
jne 0x42eee1
mov eax, dword [esp + 0x624c]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x6250]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
shl eax, 2
mov ecx, dword [eax + 0x65857c]
mov ebx, dword [eax + 0x6583fc]
mov dword [esp + 0x14], ecx
jmp 0x42eee7
xor ebx, ebx
mov dword [esp + 0x14], ebp
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x47605c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x274c]
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, str.XXXXXXXXXX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.SELECT_tphrentity_idhrentity_FROM_GATC__sHRENTITY_WHERE_flaccess1_AND_idzona_d
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x30], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x28], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3a54]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x3a48]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
xor eax, eax
cmp ebx, ebp
sete al
cmp eax, ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov dword [0x476ecf4], eax
jne 0x42f0c5
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x42f0c5
mov al, byte [ebx + 4]
mov dword [esp + 0x1c], 0
test al, al
jne 0x42f0aa
lea eax, [esp + 0x2748]
lea ecx, [esp + 0x248]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov edx, dword [ebx]
lea eax, [esp + 0x28]
push 1
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 + 0x18]
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 + 0x28]
call fcn.00445280
mov eax, dword [esp + 0x18]
push 0x46e08c
push eax
call ebp
mov edx, dword [ebx]
lea eax, [esp + 0x38]
push 2
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 + 0x10]
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 + 0x38]
call fcn.00445280
mov esi, dword [esp + 0x10]
push 0x46e08c
push esi
call ebp
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
inc edi
add edx, 2
add esi, 0xb
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
call dword [eax + 0x20]
cmp edi, 0x100
je 0x42f0a2
mov al, byte [ebx + 4]
test al, al
je 0x42efe3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x42f0b2
mov dword [esp + 0x1c], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42f0c5
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov edi, 0x47605c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1448]
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, str.XXXXXXXXXX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3a48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
push 0x476ed38
push str.SELECT_tphrentity_idhrentity_FROM_GATC__sHRENTITY_WHERE_flaccess1_AND_idzona_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x3a48]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], 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 0x42f28c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test al, al
jne 0x42f28c
mov al, byte [ebx + 4]
mov dword [esp + 0x18], 0
test al, al
jne 0x42f271
lea ecx, [esp + 0x1448]
lea edx, [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x38]
push 1
push ecx
mov ecx, ebx
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 + 0x14]
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 + 0x38]
call fcn.00445280
mov eax, dword [esp + 0x14]
push 0x46e08c
push eax
call ebp
mov edx, dword [ebx]
lea eax, [esp + 0x28]
push 2
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 + 0x10]
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 + 0x28]
call fcn.00445280
mov esi, dword [esp + 0x10]
push 0x46e08c
push esi
call ebp
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
inc edi
add edx, 2
add esi, 0xb
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
call dword [eax + 0x20]
cmp edi, 0x100
je 0x42f269
mov al, byte [ebx + 4]
test al, al
je 0x42f1aa
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42f279
mov dword [esp + 0x18], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42f28c
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x42f552
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jle 0x42f545
mov esi, dword [esp + 0x6258]
mov ecx, dword [esp + 0x6260]
mov edx, dword [esp + 0x625c]
push esi
push esi
push ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x3a6c]
push str.SELECT_max_CASE_WHEN_COALESCE_hsba_securuoli.IDSECRUOLO_hsba_securuoli1.IDSECRUOLO__is_not_null_THEN_1_ELSE_CASE_WHEN_hvmv_asssubjduty.IDSUBJECT_is_not_null_THEN_1_ELSE_0_END_END__AS_FLOK_FROM___________hsba__sproductionunit_hsba_productionunit_LEFT_OUTER_JOIN_hsba__sassunitarea_hsba_assunitarea_ON_hsba_productionunit.IDCOMPANYhsba_assunitarea.IDCOMPANY_and_hsba_productionunit.IDPRODUNIThsba_assunitarea.IDPRODUNIT__LEFT_OUTER_JOIN_hsba__sassareasect_hsba_assareasect_ON_hsba_assunitarea.IDCOMPANYhsba_assareasect.IDCOMPANY_and_hsba_assunitarea.IDPRODAREAhsba_assareasect.IDPRODAREA__LEFT_OUTER_JOIN_hsba__sassareasect_hsba_assareasect1_ON_000000hsba_assareasect1.IDCOMPANY_and_hsba_assunitarea.IDPRODAREAhsba_assareasect1.IDPRODAREA__LEFT_OUTER_JOIN_hvmv__sasssubjduty_hvmv_asssubjduty_ON_hvmv_asssubjduty.IDCOMPANY_s_and_hvmv_asssubjduty.IDSUBJECT_s_and_hvmv_asssubjduty.DTSTARTVL__s_and_hvmv_asssubjduty.DTENDVL__s_and
push eax
call edi
mov ecx, dword [esp + 0x628c]
mov edx, dword [esp + 0x6288]
push esi
push ecx
push edx
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x1f88]
push str._hvmv_asssubjduty.IDPRODUNIThsba_productionunit.IDPRODUNIT_or_hvmv_asssubjduty.IDPRODUNIT0000000000__and__hvmv_asssubjduty.IDPRODAREAhsba_assunitarea.IDPRODAREA_or_hvmv_asssubjduty.IDPRODAREA0000000000__and__hvmv_asssubjduty.IDMEDSECTCOALESCE_hsba_assareasect.IDMEDSECT_hsba_assareasect1.IDMEDSECT__or_hvmv_asssubjduty.IDMEDSECT0000000000___LEFT_OUTER_JOIN_hsba__ssubjstatus_hsba_subjstatus1_ON_hvmv_asssubjduty.IDCOMPANYhsba_subjstatus1.IDCOMPANY_and_hvmv_asssubjduty.IDSUBJECThsba_subjstatus1.IDSUBJECT__LEFT_OUTER_JOIN_hsba__ssecuruoli03_hsba_securuoli03_ON_hsba_securuoli03.IDCOMPANY_s_and_hsba_securuoli03.IDSUBJECT_s_and_hsba_securuoli03.DTASSUMPT__s_and__hsba_securuoli03.IDPRODUNIThsba_productionunit.IDPRODUNIT_or_hsba_securuoli03.IDPRODUNIT0000000000__and__hsba_securuoli03.IDPRODAREAhsba_assunitarea.IDPRODAREA_or_hsba_securuoli03.IDPRODAREA0000000000__and
push eax
call edi
add esp, 0x48
lea ecx, [esp + 0x3248]
push 0x476ed38
push 0x476ed38
push esi
push 0x476ed38
push esi
push 0x476ed38
push str._hsba_securuoli03.IDMEDSECTCOALESCE_hsba_assareasect.IDMEDSECT_hsba_assareasect1.IDMEDSECT__or_hsba_securuoli03.IDMEDSECT0000000000___LEFT_OUTER_JOIN_hsba__ssecuruoli_hsba_securuoli_ON_hsba_securuoli03.IDCOMPRUOLOhsba_securuoli.IDCOMPANY_and_hsba_securuoli03.IDSECRUOLOhsba_securuoli.IDSECRUOLO_and_DATEADD_year_hsba_securuoli.QTANNI_DATEADD_month_hsba_securuoli.QTMESI_hsba_securuoli03.DTASSUMPT______s__LEFT_OUTER_JOIN_hsba__ssecuruoli_hsba_securuoli1_ON_000000hsba_securuoli1.IDCOMPANY_and_hsba_securuoli03.IDSECRUOLOhsba_securuoli1.IDSECRUOLO_and_DATEADD_year_hsba_securuoli1.QTANNI_DATEADD_month_hsba_securuoli1.QTMESI_hsba_securuoli03.DTASSUMPT______s__LEFT_OUTER_JOIN_hsba__ssubjstatus_hsba_subjstatus_ON_hsba_securuoli03.IDCOMPANYhsba_subjstatus.IDCOMPANY_and_hsba_securuoli03.IDSUBJECThsba_subjstatus.IDSUBJECT__LEFT_OUTER_JOIN_hsba__ssetup_hsba_setup_ON_11__WHERE
push ecx
call edi
lea edx, [ebx + ebx*4]
lea ecx, [ebp + ebp*4]
lea eax, [esp + edx*2 + 0x1468]
lea edx, [esp + ecx*2 + 0x2768]
lea esi, [eax + ebx]
lea ebx, [esp + ebx*2 + 0x68]
push esi
push ebx
lea eax, [edx + ebp]
push ebx
lea ebp, [esp + ebp*2 + 0x274]
push ebx
push eax
push ebp
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x490]
push str.___CASE_WHEN__sU_THEN_hsba_productionunit.IDPRODUNIT_WHEN__sA_THEN_hsba_assunitarea.IDPRODAREA_WHEN__sC_THEN_COALESCE_hsba_assareasect.IDMEDSECT_hsba_assareasect1.IDMEDSECT__ELSE__END___s_OR_CASE_WHEN___sU_and__sXXXXXXXXXX__THEN_1_ELSE_0_END__1__AND_CASE_WHEN__sU_THEN_hsba_productionunit.IDPRODUNIT_WHEN__sA_THEN_hsba_assunitarea.IDPRODAREA_WHEN__sC_THEN_COALESCE_hsba_assareasect.IDMEDSECT_hsba_assareasect1.IDMEDSECT__ELSE__END___s_AND__COALESCE_hsba_subjstatus.FLAGADD_hsba_subjstatus1.FLAGADD___S_OR_COALESCE_hsba_subjstatus.FLAGADD_hsba_subjstatus1.FLAGADD___X_OR_hsba_setup.FLCHKADD__N__AND__COALESCE_hsba_subjstatus.FLAGFOR_hsba_subjstatus1.FLAGFOR___S_OR_COALESCE_hsba_subjstatus.FLAGFOR_hsba_subjstatus1.FLAGFOR___X_OR_hsba_setup.FLCHKFOR__N__AND__COALESCE_hsba_subjstatus.FLAGINF_hsba_subjstatus1.FLAGINF___S_OR
push eax
call edi
add esp, 0x50
lea ecx, [esp + 0xc48]
push esi
push ebx
push str.COALESCE_hsba_subjstatus.FLAGINF_hsba_subjstatus1.FLAGINF___X_OR_hsba_setup.FLCHKINF__N__AND__COALESCE_hsba_subjstatus.FLAGDPI_hsba_subjstatus1.FLAGDPI___S_OR_COALESCE_hsba_subjstatus.FLAGDPI_hsba_subjstatus1.FLAGDPI___X_OR_hsba_setup.FLCHKDPI__N__AND__COALESCE_hsba_subjstatus.FLAGVIS_hsba_subjstatus1.FLAGVIS___S_OR_COALESCE_hsba_subjstatus.FLAGVIS_hsba_subjstatus1.FLAGVIS___X_OR_hsba_setup.FLCHKVIS__N__OR_CASE_WHEN___sU_and__sXXXXXXXXXX__THEN_1_ELSE_0_END__1__
push ecx
call edi
lea edi, [esp + 0x3a58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1f48]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea edi, [esp + 0x3248]
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x448]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc48]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
mov eax, ecx
test ebx, ebx
mov dword [esp + 0x20], eax
jle 0x42f420
mov ecx, ebx
lea edi, [esp + edx + 0x3a48]
mov ebp, ecx
lea esi, [esp + 0x1f48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
xor ebx, ebx
test esi, esi
jle 0x42f44b
lea ecx, [edx + ebp]
lea edi, [esp + ecx + 0x3a48]
mov ecx, esi
mov ebx, ecx
lea esi, [esp + 0x3248]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x10], esi
jle 0x42f484
lea eax, [edx + ebx]
lea esi, [esp + 0x448]
add eax, ebp
lea edi, [esp + eax + 0x3a48]
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 esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
xor ecx, ecx
test eax, eax
jle 0x42f4b4
add esi, edx
mov ecx, eax
add esi, ebx
add esi, ebp
shr ecx, 2
lea edi, [esp + esi + 0x3a48]
lea esi, [esp + 0xc48]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
add ecx, esi
push 1
add ecx, edx
sub esp, 0x10
add ecx, ebx
lea edx, [esp + 0x3a5c]
add ecx, ebp
mov dword [esp + 0x34], esp
mov byte [esp + ecx + 0x3a5c], 0
mov ecx, 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 0x42f538
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x42f538
mov al, byte [esi + 4]
test al, al
jne 0x42f51d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x42f530
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42f552
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x42f2a8
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x42f29a
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6238
ret