Function at 0x4319b0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x804
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4319d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov eax, dword [esp + 0x830]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push eax
push 0x476ed38
push eax
mov eax, dword [esp + 0x864]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x68]
push str.SELECT_GATC__sBADGE.dtexparea_FROM_codd__ssubject15_GATC__sBADGE_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_GATC__sBADGE.dtexparea_codd__ssubject15.dtexpirat
push ecx
xor ebp, ebp
xor ebx, ebx
call edi
add esp, 0x5c
lea edx, [esp + 0x14]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], 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 0x431c19
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x431c19
mov al, byte [esi + 4]
test al, al
jne 0x431ab0
mov ebx, 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x431ac3
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
test ebx, ebx
je 0x431c19
movsx eax, byte [esp + 0x820]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push eax
mov eax, dword [esp + 0x878]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x87c]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov edx, dword [ecx*4 + 0x643948]
lea ecx, [eax + eax*2]
push edx
push 0x476ed38
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [0x476edd0]
lea eax, [eax + eax*4]
shl eax, 5
mov ecx, dword [eax + 0x643944]
lea eax, [esp + 0x7c]
push ecx
push 0x476ed38
push edx
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push str.SELECT_GATC__sAREE.idarea_FROM_GATD__sDEVICE_GATC__sAREE_WHERE_GATD__sDEVICE.idkcom_d_AND_GATD__sDEVICE.cntchannel_d_AND_GATD__sDEVICE.cproword_d_AND____c0_AND_GATD__sDEVICE.fldtexpareaent1_AND___GATD__sDEVICE.vinit1GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareainit1__OR___GATD__sDEVICE.vend1GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareaend1____OR___c1_AND_GATD__sDEVICE.fldtexpareausc1_AND___GATD__sDEVICE.vinit2GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareainit1__OR___GATD__sDEVICE.vend2GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareaend1____OR___c2_AND_GATD__sDEVICE.fldtexparearem1_AND___GATD__sDEVICE.vinit3GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareainit1__OR___GATD__sDEVICE.vend3GATC__sAREE.idarea_AND_GATC__sAREE.fldtexpareaend1_____
push eax
call edi
add esp, 0x8c
lea edx, [esp + 0x14]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], 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 0x431c19
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x431c19
mov al, byte [esi + 4]
test al, al
jne 0x431c06
mov ebp, 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x431c19
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x804
ret