Function at 0x434b70
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x108c
call fcn.0045ec70
mov eax, dword [0x476ecf4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x434b94
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108c
ret
mov eax, dword [esp + 0x10a0]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x10a4]
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
lea ecx, [esp + 0x74]
mov eax, dword [edx*4 + 0x65937c]
lea edx, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x434bfe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108c
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10a8]
push 0xa
add eax, 8
lea ecx, [esp + 0x30]
push eax
push ecx
xor ebx, ebx
call fcn.0045eb70
mov edi, str.5052454E4F5441544F2020202020202020202020202020202020202020202020
or ecx, 0xffffffff
xor eax, eax
push 0x476ed38
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x3c]
mov edx, ecx
push eax
mov esi, edi
mov edi, dword [esp + 0x10c0]
push 0x476ed38
push 0x476ed38
shr ecx, 2
push 0x476ed38
push 0x476ed38
rep movsd dword es:[edi], dword [esi]
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
push 0x476ed38
mov ecx, edx
push 0x476ed38
push 0x476ed38
and ecx, 3
push 0x476ed38
push 0x476ed38
push 0x476ed38
rep movsb byte es:[edi], byte [esi]
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x900]
push str.SELECT_codd__ssubject00.ansurnam_codd__ssubject00.anname_FROM_codd__ssubject15_GATC__sBADGE_codd__ssubject00_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_GATC__sBADGE.idcompanycodd__ssubject00.idcompany_AND_GATC__sBADGE.idsubjectcodd__ssubject00.idsubject_AND_GATC__sBADGE.HEXTESSERA___s_ORDER_BY_codd__ssubject15.DTACTIVAT_DESC
push ecx
mov byte [esp + 0xa2], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x6c
lea edx, [esp + 0x89c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x434f31
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x434f31
mov al, byte [ebp + 4]
test al, al
jne 0x434f1c
mov eax, dword [ebp]
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x3c]
call fcn.00445280
mov ebx, dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [esp + 0x9c]
push 0x46e08c
push ecx
call ebx
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
jle 0x434dc1
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
mov byte [esp + 0xac], al
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
jmp 0x434ddc
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x9c]
push ecx
push 0x10
push 0x20
push edx
push 0
call fcn.0045ab10
add esp, 0x14
mov eax, dword [ebp]
lea ecx, [esp + 0x3c]
push 2
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x3c]
call fcn.00445280
lea ecx, [esp + 0x9c]
push 0x46e08c
push ecx
call ebx
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
jle 0x434e6f
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
mov byte [esp + 0xac], al
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
jmp 0x434e8a
lea ecx, [esp + 0x60]
lea edx, [esp + 0x9c]
push ecx
push 0x10
push 0x20
push edx
push 0
call fcn.0045ab10
add esp, 0x14
lea eax, [esp + 0x60]
lea ecx, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0xa4]
push 0x46e084
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, 0x4846e4
lea eax, [esp + 0x9c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x434ede
test cl, cl
je 0x434eda
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x434ede
add eax, 2
add esi, 2
test cl, cl
jne 0x434eb6
xor eax, eax
jmp 0x434ee3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x434f17
mov ebx, dword [esp + 0x10ac]
xor esi, esi
mov edi, ebx
movsx eax, byte [esp + esi + 0x9c]
push eax
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
add edi, 2
cmp esi, 0x20
jl 0x434ef2
mov byte [ebx + 0x40], 0
mov ebx, 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x434f31
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x108c
ret