Function at 0x4146e0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x1030
call fcn.0045ec70
mov eax, dword [0x523fb0]
push ebx
xor ecx, ecx
push ebp
push esi
cmp eax, ecx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
jne 0x414711
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1030
ret
mov ebp, dword [esp + 0x1050]
mov ebx, dword [esp + 0x1054]
mov esi, dword [esp + 0x1044]
lea eax, [ebp + ebp*2]
lea eax, [eax + eax*8]
lea eax, [ebp + eax*8]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
lea eax, [eax + eax*4]
lea edi, [ebx + eax*8]
shl edi, 2
mov dword [esp + 0x10], edi
cmp dword [edi + 0x656f7c], ecx
je 0x414772
mov ecx, dword [esp + 0x1048]
push esi
push ecx
call fcn.00413830
add esp, 8
test eax, eax
je 0x414772
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1030
ret
mov edx, dword [esp + 0x104c]
push ebx
mov ebx, dword [esp + 0x104c]
push ebp
push edx
push ebx
push esi
call fcn.00413660
add esp, 0x14
test eax, eax
je 0x4147a1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1030
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push esi
push 0x476ed38
push esi
push 0x476ed38
push ebx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x9c]
push str.SELECT_GATC__sAREE.resetapb_GATC__sBADGE.ulttimb_FROM_GATC__sAREE_GATC__sBADGE_codd__ssubject15_WHERE_GATC__sBADGE.areaGATC__sAREE.idarea_AND_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
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 0x41495d
mov al, byte [ebx + 4]
test al, al
jne 0x41494a
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push 2
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 + 0x840]
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 + 0x30]
call fcn.00445280
lea ecx, [esp + 0x20]
lea edx, [esp + 0x840]
push ecx
push edx
call fcn.0045cb50
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jle 0x41493f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0045a780
mov ecx, dword [esp + 0x1068]
mov edx, dword [esp + 0x106c]
mov edi, eax
mov eax, esp
add edi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x1070]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1074]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0045a780
add esp, 0x10
cmp edi, eax
jae 0x41493f
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1044]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
test ebx, ebx
je 0x41495d
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov al, byte [esp + 0x104c]
cmp al, 0x30
jne 0x41497c
mov edx, str.vinit1
mov ebx, str.vend1
mov dword [esp + 0x10], edx
mov ecx, ebx
mov eax, ebx
jmp 0x4149ab
cmp al, 0x31
jne 0x414994
mov edx, str.vinit2
mov ebx, str.vend2
mov dword [esp + 0x10], edx
mov ecx, ebx
mov eax, ebx
jmp 0x4149ab
mov edx, str.vinit3
mov ebx, str.vend3
mov dword [esp + 0x10], edx
mov ecx, ebx
jmp 0x4149a6
mov eax, str.vend3
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push esi
push 0x476ed38
push esi
mov esi, dword [esp + 0x107c]
push 0x476ed38
push esi
mov esi, dword [esp + 0x4c]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push esi
mov esi, dword [esp + 0x68]
push 0x476ed38
push ebx
push 0x476ed38
push esi
push 0x476ed38
push edx
push 0x476ed38
push 0x476ed38
push ecx
push 0x476ed38
push 0x476ed38
push eax
mov eax, dword [edi + 0x643948]
push 0x476ed38
push eax
lea eax, [ebp + ebp*2]
push 0x476ed38
lea ecx, [eax + eax*8]
lea eax, [ebp + ecx*8]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
mov edx, dword [0x476edd0]
lea eax, [eax + eax*4]
shl eax, 5
mov ecx, dword [eax + 0x643944]
lea eax, [esp + 0xc8]
push ecx
push 0x476ed38
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push str.SELECT_GATC__sAUTHAREE.idtime_FROM_codd__ssubject15_GATD__sDEVICE_GATC__sAUTHAREE_GATC__sBADGE_WHERE_GATD__sDEVICE.idkcom_d_AND_GATD__sDEVICE.cntchannel_d_AND_GATD__sDEVICE.cproword_d_AND____GATD__sDEVICE._sGATC__sAUTHAREE.idarea_OR_GATD__sDEVICE._s1__AND__GATC__sBADGE.areaGATD__sDEVICE._s_OR_GATC__sBADGE.area0_OR_1_d___OR__GATD__sDEVICE._s0_AND_GATD__sDEVICE._s0___AND_GATC__sAUTHAREE.idauthGATC__sBADGE.authacc_AND_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
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xb4
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 esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x414b03
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x414b03
mov al, byte [esi + 4]
test al, al
jne 0x414af0
mov dword [esp + 0x18], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x414b03
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1030
ret