Function at 0x42c850
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x84c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x42c870
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x42c8b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x860]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*8]
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x864]
lea edi, [ecx + edx*8]
lea edx, [eax + eax*2]
shl edi, 2
lea edx, [edx + edx*8]
mov ecx, dword [edi + 0x65e24c]
lea edx, [eax + edx*8]
lea edx, [edx + edx*2]
lea eax, [eax + edx*2]
lea edx, [ecx + ecx*8]
lea eax, [eax + eax*4]
shl eax, 5
lea ebx, [eax + 0x643944]
lea eax, [ecx + edx*2]
mov edx, dword [ebx]
lea eax, [eax + eax*8]
lea esi, [ecx + eax*2]
mov ecx, dword [edi + 0x643948]
mov eax, dword [0x476edd0]
push ecx
shl esi, 3
push edx
lea ecx, [esp + 0x3c]
mov edx, dword [esi + 0x460552c]
push eax
mov eax, dword [esi + 0x4605528]
push ecx
mov ecx, dword [esi + 0x4605524]
push edx
mov edx, dword [esi + 0x4605520]
push eax
mov eax, dword [esi + 0x460551c]
push ecx
mov ecx, dword [esi + 0x4605518]
push edx
mov edx, dword [esi + 0x4605514]
push eax
mov eax, dword [esi + 0x4605510]
push ecx
mov ecx, dword [esi + 0x460550c]
push edx
mov edx, dword [esi + 0x4605508]
push eax
mov eax, dword [esi + 0x4605504]
push ecx
mov ecx, dword [esi + 0x4605500]
push edx
mov edx, dword [esi + 0x46054fc]
push eax
mov eax, dword [esi + 0x46054f8]
push ecx
mov ecx, dword [esi + 0x46054f4]
push edx
mov edx, dword [esi + 0x46054f0]
push eax
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0xb0]
push str.UPDATE_GATC__sDIDOPLUS_SET_in1_d_in2_d_in3_d_in4_d_in5_d_in6_d_in7_d_in8_d_out1_d_out2_d_out3_d_out4_d_out5_d_out6_d_out7_d_out8_d_datora_s_WHERE_kcom_d_AND_channel_d_AND_device_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x4c
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov ebp, ecx
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x42cb7d
mov eax, dword [edi + 0x656d7c]
test eax, eax
je 0x42cb6c
mov edx, dword [edi + 0x643948]
mov eax, dword [ebx]
mov ecx, dword [0x476edd0]
push edx
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x6c]
push str.SELECT_MAX_idlogs__FROM_GATG__sLOGSIO_WHERE_kcom_d_AND_channel_d_AND_device_d_AND_didochn0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x5c]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42cb68
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x42cb68
mov al, byte [ebp + 4]
test al, al
jne 0x42cb53
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
inc eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x4605528]
mov edx, dword [esi + 0x4605524]
push eax
mov eax, dword [esi + 0x460552c]
push eax
mov eax, dword [esi + 0x4605520]
push ecx
mov ecx, dword [esi + 0x460551c]
push edx
mov edx, dword [esi + 0x4605518]
push eax
mov eax, dword [esi + 0x4605514]
push ecx
mov ecx, dword [esi + 0x4605510]
push edx
mov edx, dword [esi + 0x460550c]
push eax
mov eax, dword [esi + 0x4605508]
push ecx
mov ecx, dword [esi + 0x4605504]
push edx
mov edx, dword [esi + 0x4605500]
push eax
mov eax, dword [esi + 0x46054fc]
push ecx
mov ecx, dword [esi + 0x46054f8]
push edx
mov edx, dword [esi + 0x46054f4]
push eax
mov eax, dword [esi + 0x46054f0]
push ecx
push edx
mov edx, dword [edi + 0x643948]
lea ecx, [esp + 0x74]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [0x476edd0]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0xb8]
push str.INSERT_INTO_GATG__sLOGSIO__idlogs_kcom_channel_device_didochn_datora_in1_in2_in3_in4_in5_in6_in7_in8_out1_out2_out3_out4_out5_out6_out7_out8_cpccchk__VALUES___d__d__d__d_0__s__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__010lu_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x54
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp + 0x10], ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x42cb68
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x42cb7d
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x42cb88
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret