Function at 0x419480
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x818
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4194a1
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret
mov esi, dword [esp + 0x834]
mov ebx, dword [esp + 0x82c]
cmp esi, 1
jne 0x41954e
mov eax, dword [0x476edc4]
test eax, eax
jle 0x41954e
lea eax, [ebx + ebx*2]
mov ebp, dword [esp + 0x830]
mov dword [esp + 0x14], 0
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
lea ecx, [eax + eax*2]
lea eax, [ebx + ecx*2]
lea edx, [eax + eax*4]
lea esi, [ebp + edx*8]
mov edx, 0x675648
mov dword [esi*4 + 0x675648], 1
xor eax, eax
mov ecx, edx
cmp dword [ecx], 0
je 0x419507
inc dword [esp + 0x14]
mov edi, dword [0x476edc4]
cmp dword [esp + 0x14], edi
jg 0x419533
inc eax
add ecx, 4
cmp eax, 0x20
jl 0x4194fe
add edx, 0x32e60
cmp edx, 0x4614e48
jl 0x4194fa
mov esi, dword [esp + 0x834]
jmp 0x419555
mov dword [esi*4 + 0x675648], 0
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret
mov ebp, dword [esp + 0x830]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, 1
mov dword [esp + 0x14], 0
jne 0x4198b2
lea eax, [ebx + ebx*2]
mov edi, 0x514f20
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
lea ecx, [eax + eax*2]
lea eax, [ebx + ecx*2]
or ecx, 0xffffffff
lea edx, [eax + eax*4]
xor eax, eax
lea edx, [ebp + edx*2]
shl edx, 4
add edx, 0x64c068
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
lea eax, [ebx + ebx*2]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*8]
mov edi, 0x514f20
lea eax, [ebx + ecx*8]
or ecx, 0xffffffff
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
lea edx, [eax + eax*4]
shl edx, 5
lea eax, [edx + ebp*8]
lea esi, [eax + ebp + 0x64c268]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov edi, 0x514f20
shl ecx, 0xa
add eax, ecx
or ecx, 0xffffffff
lea esi, [eax + ebp + 0x64c388]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + ebx*2]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*8]
mov edx, dword [edx + 0x643944]
lea eax, [ebx + ecx*8]
lea eax, [eax + eax*2]
lea eax, [ebx + eax*2]
lea ecx, [eax + eax*4]
lea eax, [ebp + ecx*8]
mov ecx, dword [eax*4 + 0x654914]
mov eax, dword [0x476edd0]
push ecx
push edx
push eax
push 0x476ed38
push 0x476ed38
lea ecx, [esp + 0x3c]
push str.SELECT_idstmt__comando__dati__datora_FROM_GATC__sSTMT_WHERE_idstmt_SELECT_MIN_idstmt__FROM_GATC__sSTMT_WHERE_idkcom_d_AND_idchn_d_AND_iddevice_d_AND_npriority1_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 1
lea edx, [esp + 0x2c]
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 ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x419bc3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x419bc3
mov al, byte [ebp + 4]
test al, al
jne 0x419af0
mov eax, dword [esp + 0x834]
test eax, eax
jne 0x419925
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
call dword [eax + 0x14]
lea ecx, [ebx + ebx*2]
mov edi, dword [eax + 4]
xor eax, eax
lea edx, [ecx + ecx*8]
lea ecx, [ebx + edx*8]
lea ecx, [ecx + ecx*2]
lea ecx, [ebx + ecx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x830]
lea edx, [ecx + edx*2]
or ecx, 0xffffffff
shl edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx + 0x643ac8]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x10], 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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea ecx, [ebx + ebx*2]
mov edi, dword [eax + 4]
xor eax, eax
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [ebx + edx*2]
mov edx, dword [esp + 0x830]
lea ecx, [ecx + ecx*4]
shl ecx, 5
mov dword [esp + 0x14], ecx
lea ecx, [ecx + edx*8]
lea edx, [edx + ecx + 0x643cc8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x830]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 4]
mov edx, ecx
shl edx, 0xa
add esi, edx
xor eax, eax
lea edx, [ecx + esi + 0x643de8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
push 4
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
lea ecx, [ebx + ebx*2]
mov esi, dword [esp + 0x830]
push 5
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [ebx + edx*2]
lea ecx, [ecx + ecx*4]
lea edx, [esi + ecx*8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [edx*4 + 0x64bfe8], eax
mov eax, dword [ebp]
call dword [eax + 0x14]
mov edx, dword [esp + 0x14]
mov edi, dword [eax + 4]
lea ecx, [esi + esi*2]
xor eax, eax
lea edx, [edx + ecx*4]
lea edx, [ecx + edx + 0x64be08]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
jmp 0x419ad6
test esi, esi
jne 0x419679
lea eax, [ebx + ebx*2]
lea ecx, [eax + eax*8]
lea eax, [ebx + ecx*8]
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
lea eax, [eax + eax*4]
lea ecx, [ebp + eax*8]
mov eax, dword [ecx*4 + 0x654914]
lea ecx, [ebx + ebx*2]
push eax
lea edx, [ecx + ecx*8]
lea ecx, [ebx + edx*8]
lea ecx, [ecx + ecx*2]
lea ecx, [ebx + ecx*2]
lea edx, [ecx + ecx*4]
shl edx, 5
mov ecx, dword [edx + 0x643944]
mov edx, dword [0x476edd0]
push ecx
push edx
push 0x476ed38
push eax
push ecx
push edx
push 0x476ed38
push 0x476ed38
lea eax, [esp + 0x4c]
push str.SELECT_idstmt__comando__dati__npriority__datora_FROM_GATC__sSTMT_WHERE_idstmt_SELECT_MIN_idstmt__FROM_GATC__sSTMT_WHERE_idkcom_d_AND_idchn_d_AND_iddevice_d_AND_npriority_SELECT_MIN_npriority__FROM_GATC__sSTMT_WHERE_idkcom_d_AND_idchn_d_AND_iddevice_d_AND_npriority_1__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
jmp 0x419679
cmp eax, 1
jne 0x419add
mov edx, dword [ebp]
push eax
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call dword [edx + 0x14]
lea ecx, [ebx + ebx*2]
mov edi, dword [eax + 4]
xor eax, eax
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [ebx + edx*2]
mov edx, dword [esp + 0x830]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
shl ecx, 4
lea edx, [ecx + 0x64c068]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x14]
lea ecx, [ebx + ebx*2]
mov edi, dword [eax + 4]
xor eax, eax
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*8]
lea edx, [ecx + ecx*2]
lea ecx, [ebx + edx*2]
mov edx, dword [esp + 0x830]
lea ecx, [ecx + ecx*4]
shl ecx, 5
mov dword [esp + 0x14], ecx
lea ecx, [ecx + edx*8]
lea edx, [edx + ecx + 0x64c268]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x830]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 4]
mov edx, ecx
shl edx, 0xa
add esi, edx
xor eax, eax
lea edx, [ecx + esi + 0x64c388]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x830]
mov edx, dword [esp + 0x14]
mov edi, dword [eax + 4]
xor eax, eax
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*4]
lea edx, [ecx + edx + 0x6543a8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
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 + 0x18]
call fcn.00445280
mov ecx, dword [esp + 0x10]
push 0x46e08c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5591f8], eax
mov dword [esp + 0x14], 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x419b05
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
cmp dword [esp + 0x14], 1
jne 0x419bc3
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x834]
test eax, eax
lea eax, [ebx + ebx*2]
jne 0x419b4c
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
lea ecx, [eax + eax*2]
lea eax, [ebx + ecx*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x830]
lea eax, [eax + edx*2]
shl eax, 4
add eax, 0x643ac8
jmp 0x419b6d
lea ecx, [eax + eax*8]
lea eax, [ebx + ecx*8]
mov ecx, dword [esp + 0x830]
lea edx, [eax + eax*2]
lea eax, [ebx + edx*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
shl eax, 4
add eax, 0x64c068
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x476ed38
lea edx, [esp + 0x34]
push str.UPDATE_GATC__sSTMT_SET_executing1__cpccchk_010lu_WHERE_idstmt_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [0x516f90]
cmp eax, 1
mov dword [esp + 0x14], eax
jne 0x419bbe
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x419bc3
mov edx, dword [ecx]
call dword [edx + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + ebx*2]
mov esi, 0x4770c0
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
lea ecx, [eax + eax*2]
lea ebx, [ebx + ecx*2]
lea edi, [ebx + ebx*4]
shl edi, 5
lea eax, [edi + 0x6439f1]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x419c16
test cl, cl
je 0x419c12
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x419c16
add eax, 2
add esi, 2
test cl, cl
jne 0x419bee
xor eax, eax
jmp 0x419c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419c9a
cmp dword [esp + 0x834], 1
jne 0x419c9a
mov ebp, dword [esp + 0x830]
mov esi, 0x514f20
lea eax, [edi + ebp*8]
lea ebp, [eax + ebp + 0x64c268]
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x419c69
test cl, cl
je 0x419c65
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x419c69
add eax, 2
add esi, 2
test cl, cl
jne 0x419c41
xor eax, eax
jmp 0x419c6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419c9a
mov edi, 0x4770bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 1
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret