Function at 0x42cda0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x808
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x42cdc0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esp + 0x824]
mov esi, dword [esp + 0x81c]
cmp al, 0x30
jne 0x42ce02
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]
mov eax, dword [esp + 0x820]
lea ecx, [eax + edx*8]
mov ebp, dword [ecx*4 + 0x65847c]
jmp 0x42ce56
cmp al, 0x31
jne 0x42ce2b
lea eax, [esi + esi*2]
lea edx, [eax + eax*8]
lea eax, [esi + edx*8]
mov edx, dword [esp + 0x820]
lea eax, [eax + eax*2]
lea eax, [esi + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov ebp, dword [eax*4 + 0x6584fc]
jmp 0x42ce56
cmp al, 0x32
jne 0x42ce54
lea eax, [esi + esi*2]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*8]
mov ecx, dword [esp + 0x820]
lea edx, [eax + eax*2]
lea eax, [esi + edx*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
mov ebp, dword [edx*4 + 0x65857c]
jmp 0x42ce56
xor ebp, ebp
push ebp
push 0x476ed38
lea eax, [esp + 0x20]
push str.SELECT_flmaxpermode_FROM_GATC__sAREE_WHERE_idarea_d
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x18]
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 edi, eax
xor eax, eax
test edi, edi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42ceff
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
test al, al
jne 0x42ceff
mov al, byte [edi + 4]
test al, al
jne 0x42ceec
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x10]
call fcn.0045f9d8
lea ecx, [esi + esi*2]
lea ecx, [ecx + ecx*8]
lea ecx, [esi + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [esp + 0x820]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov dword [ecx*4 + 0x65897c], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
test edi, edi
je 0x42ceff
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea eax, [esi + esi*2]
lea ecx, [eax + eax*8]
lea eax, [esi + ecx*8]
mov ecx, dword [esp + 0x820]
lea edx, [eax + eax*2]
lea eax, [esi + edx*2]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
shl ebx, 2
mov dword [ebx + 0x658afc], 0xffffffff
mov eax, dword [ebx + 0x65897c]
test eax, eax
je 0x42d0ac
mov edx, dword [esp + 0x828]
mov eax, dword [esp + 0x82c]
push edx
push 0x476ed38
push eax
push 0x476ed38
push eax
push 0x476ed38
push 0x476ed38
push 0x476ed38
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 + 0x64]
push str.SELECT_GATC__sBADGE.modacc_FROM_codd__ssubject15_GATC__sBADGE_WHERE_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.dtactivat__s_AND_codd__ssubject15.dtexpirat__s_AND_GATC__sBADGE.hextessera_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x54
lea edx, [esp + 0x18]
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 edi, eax
xor eax, eax
test edi, edi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42d0ac
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
test al, al
jne 0x42d0ac
mov al, byte [edi + 4]
test al, al
jne 0x42d008
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
test edi, edi
je 0x42d01b
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x42d0ac
push eax
push ebp
push 0x476ed38
lea ecx, [esp + 0x24]
push str.SELECT_maxcapacity_FROM_GATC__sAREEMODE_WHERE_idarea_d_AND_idmode_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x18]
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 edi, eax
xor eax, eax
test edi, edi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42d0ac
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
test al, al
jne 0x42d0ac
mov al, byte [edi + 4]
test al, al
jne 0x42d099
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [ebx + 0x658afc], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
test edi, edi
je 0x42d0ac
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebx + 0x658afc]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebx + 0x65897c]
test ecx, ecx
je 0x42d100
test eax, eax
jle 0x42d100
mov edx, dword [esp + 0x82c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x820]
push edx
push 0
push eax
push ebp
push ecx
push esi
call fcn.0042d3b0
add esp, 0x18
test eax, eax
je 0x42d100
mov edx, dword [ebx + 0x658a7c]
mov eax, dword [ebx + 0x658afc]
cmp edx, eax
jl 0x42d100
xor edi, edi
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret