Function at 0x421e40
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x830
push ebx
push ebp
push esi
push edi
push 0x46054d8
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x844]
mov ebp, dword [esp + 0x848]
mov edx, ebp
mov edi, dword [esp + 0x84c]
lea eax, [esi + esi*2]
push edi
shl edx, 4
lea eax, [eax + eax*8]
push edi
lea eax, [esi + eax*8]
lea ecx, [eax + eax*2]
lea eax, [esi + ecx*2]
lea eax, [eax + eax*4]
shl eax, 5
mov ecx, eax
add ecx, edx
lea ebx, [eax + ebp]
lea edx, [ecx + ebp + 0x65759c]
lea ecx, [ebp*8]
mov dword [esp + 0x24], edx
mov edx, ebp
shl edx, 5
sub edx, ebp
sub ecx, ebp
add ecx, eax
lea edx, [edx + eax + 0x657d3c]
lea eax, [eax + ebp*2]
push edx
lea edx, [ebp + ebp*4]
mov dword [esp + 0x24], ecx
lea ecx, [ecx + 0x6574bc]
lea edx, [ebx + edx*8 + 0x65781c]
push edx
lea edx, [eax + ebp + 0x6577bc]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
push 0x476ed38
lea ecx, [esp + 0x60]
push str.SELECT_idrapcomp_idrapempl_FROM_codd__ssubject17_WHERE_idcompany_s_AND_idsubject_s_AND_idsystem_s_AND_idticket_s_AND_dtactivat_s_AND_dtstartvl__s_AND_dtendvl__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea edx, [esp + 0x40]
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 0x4221d2
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x4221d2
mov al, byte [ebx + 4]
mov dword [esp + 0x10], 0
test al, al
jne 0x422013
lea eax, [esi + esi*2]
lea eax, [eax + eax*8]
lea eax, [esi + eax*8]
lea ecx, [eax + eax*2]
lea eax, [esi + ecx*2]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*4]
lea eax, [eax*8 + 0x6581fc]
mov dword [esp + 0x14], eax
mov edx, dword [ebx]
lea eax, [esp + 0x20]
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]
mov eax, dword [esp + 0x18]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [eax + 0x65811c]
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 + 0x20]
call fcn.00445280
mov edx, dword [ebx]
lea eax, [esp + 0x30]
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 + 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 + 0x30]
call fcn.00445280
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
call dword [eax + 0x20]
mov al, byte [ebx + 4]
test al, al
je 0x421f72
mov edi, dword [esp + 0x84c]
mov esi, dword [esp + 0x844]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x422026
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4221d2
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
push 0x476ed38
lea eax, [edx + 0x6574bc]
push eax
push 0x476ed38
push 0x476ed38
push edi
push 0x476ed38
push edi
push 0x476ed38
push edi
push 0x476ed38
push edi
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x9c]
push str.SELECT_hrdd__semployee00.idcompany_hrdd__semployee00.idemploy_FROM_hrdd__semployee00_INNER_JOIN_hrdd__semployee11_ON_hrdd__semployee00.idcompanyhrdd__semployee11.idcompany_AND_hrdd__semployee00.idemployhrdd__semployee11.idemploy_AND_hrdd__semployee00.idyardhrdd__semployee11.idyard_WHERE_hrdd__semployee11.dtstartvl__s_AND_hrdd__semployee11.dtendvl__s_AND_hrdd__semployee11.dtassumpt__s_AND__hrdd__semployee11.dtlayoff__s_OR_hrdd__semployee11.dtlayoff_IS_NULL__AND_hrdd__semployee00.idsubcomp_s_AND_hrdd__semployee00.idsubject_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x64
lea edx, [esp + 0x40]
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 0x4221d2
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x4221d2
mov al, byte [ebx + 4]
mov dword [esp + 0x10], 0
test al, al
jne 0x4221bf
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x65811c]
lea eax, [esi + esi*2]
mov dword [esp + 0x14], ecx
lea edx, [eax + eax*8]
lea eax, [esi + edx*8]
lea eax, [eax + eax*2]
lea esi, [esi + eax*2]
lea ecx, [esi + esi*4]
lea ebp, [ebp + ecx*4]
lea ebp, [ebp*8 + 0x6581fc]
mov edx, dword [ebx]
lea eax, [esp + 0x30]
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 + 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 + 0x30]
call fcn.00445280
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push 2
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, ebp
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 + 0x20]
call fcn.00445280
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
call dword [eax + 0x20]
mov al, byte [ebx + 4]
test al, al
je 0x422134
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x4221d2
mov eax, dword [ebx]
push 1
mov ecx, ebx
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, 0x830
ret