Function at 0x42f570
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x1048
call fcn.0045ec70
push ebx
push ebp
push esi
push edi
push 0x46054d8
mov dword [esp + 0x18], 0
mov ebx, 0xf
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x476ed38
lea eax, [esp + 0x5c]
push str.SELECT_qtchrbadge_FROM_cotg__scodifyrule_WHERE_idaccess1
push eax
call edi
add esp, 0xc
lea edx, [esp + 0x58]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], 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 0x42f617
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x42f617
mov al, byte [esi + 4]
test al, al
jne 0x42f604
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov ebx, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x42f617
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ebp, dword [esp + 0x1068]
push 2
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.0045eb70
lea edx, [ebp + 2]
mov byte [esp + 0x1e], 0
push edx
call fcn.0045a970
mov esi, eax
lea eax, [ebp + 4]
push eax
shl esi, 8
call fcn.0045a970
lea ecx, [ebp + 6]
add esi, eax
push ecx
shl esi, 8
call fcn.0045a970
lea edx, [ebp + 8]
add esi, eax
push edx
shl esi, 8
call fcn.0045a970
add esi, eax
lea eax, [esp + 0x874]
push esi
push str._09ld
push eax
call edi
lea ecx, [esp + 0x54]
lea edx, [esp + 0x880]
push ecx
push ebx
push 0x30
push edx
push 0
call fcn.0045ab10
mov eax, dword [esp + 0x1098]
add esp, 0x3c
mov esi, 0x46f4c0
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
shl eax, 5
add eax, 0x6439f7
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42f6d9
test cl, cl
je 0x42f6d5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42f6d9
add eax, 2
add esi, 2
test cl, cl
jne 0x42f6b5
xor eax, eax
jmp 0x42f6de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42f719
mov edi, 0x46f4b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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 + 0x2c]
push ecx
push ebx
push 0x30
push ebp
push 0
call fcn.0045ab10
add esp, 0x14
mov eax, dword [esp + 0x1064]
lea edx, [esp + 0x2c]
push eax
push eax
lea eax, [esp + 0x18]
push edx
push eax
push 0x476ed38
lea ecx, [esp + 0x6c]
push str.SELECT_idcompany_idsubject_FROM_codd__ssubject15_WHERE_idsystem_s_AND_idticket_s_AND_dtactivat__s_AND_dtexpirat__s_AND_lgokticket1
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edx, [esp + 0x58]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], 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 0x42f846
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x42f846
mov al, byte [ebx + 4]
test al, al
jne 0x42f833
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x106c]
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 + 0x1c]
call fcn.00445280
push 0x46e08c
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrTrimA]
call ebp
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
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, dword [esp + 0x1070]
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 + 0x1c]
call fcn.00445280
mov eax, dword [esp + 0x1070]
push 0x46e08c
push eax
call ebp
mov dword [esp + 0x14], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
test ebx, ebx
je 0x42f846
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 + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1048
ret