Function at 0x402894
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov eax, 0x4e79bc
push ebx
push esi
push edi
lea esi, [ebp - 0x94]
mov ebx, dword [ebp + 0xc]
call fcn.004dc32c
mov word [esi + 0x10], 8
xor edx, edx
lea eax, [ebp - 8]
mov dword [ebp - 4], edx
mov edx, 0x4e752a
inc dword [esi + 0x1c]
mov word [esi + 0x10], 0x14
mov word [esi + 0x10], 0x20
call fcn.004e5118
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x168]
mov word [esi + 0x10], 0x14
push ecx
call fcn.0040324c
pop ecx
lea edx, [ebp - 0x168]
mov word [esi + 0x10], 0x2c
lea eax, [ebp - 0xc]
call fcn.004e5118
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004e51bc
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004e518c
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x38
mov edi, eax
lea eax, [ebp - 0x10]
mov edx, str.SELECT__FROM_config_WHERE_dateCURDATE__
call fcn.004e5118
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004e518c
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x402a72
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x44
mov edi, eax
lea eax, [ebp - 0x14]
mov edx, str.UPDATE_config_SET_dateCURDATE__
call fcn.004e5118
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004e518c
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_ExecSQL_qqrv
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x50
mov edi, eax
lea eax, [ebp - 0x18]
mov edx, str.UPDATE_sitelist_SET_vizitorsperdey0
call fcn.004e5118
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004e518c
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_ExecSQL_qqrv
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x5c
mov edi, eax
lea eax, [ebp - 0x1c]
mov edx, str.SELECT__FROM_sitelist_WHERE_vizitorsperdey_maxvizitorsperdey_ORDER_BY_vizitorsperdey
call fcn.004e5118
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004e518c
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0x14c]
mov dword [ebp - 0x98], eax
xor ecx, ecx
mov dword [ebp - 0x9c], ecx
mov word [esi + 0x10], 0x14
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x98]
jge 0x402fe4
mov word [esi + 0x10], 0x74
mov edx, dword [ebx + 0x2f8]
mov eax, dword [edx + 0x30]
xor edx, edx
call fcn.0045a72c
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x20]
inc dword [esi + 0x1c]
call fcn.0045b58c
lea eax, [ebp - 0x20]
call fcn.004e5288
mov dword [ebp - 0xa0], eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004e518c
mov word [esi + 0x10], 0x68
mov word [esi + 0x10], 0x80
mov ecx, dword [ebx + 0x2f8]
mov edx, 1
mov eax, dword [ecx + 0x30]
call fcn.0045a72c
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x24]
inc dword [esi + 0x1c]
call fcn.0045b58c
lea edx, [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.004e51bc
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004e518c
xor edx, edx
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2fc]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2fc]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x8c
mov edi, eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 0xa0]
call fcn.00487cdc
lea edx, [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
inc dword [esi + 0x1c]
mov eax, str.SELECT__FROM_vizitorips_WHERE_siteid
call fcn.004e52d8
lea edx, [ebp - 0x2c]
push edx
mov edx, str._AND_dateCURDATE___AND_ip
lea eax, [ebp - 0x30]
call fcn.004e5118
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x30]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x34]
pop eax
call fcn.004e51d0
lea eax, [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x38]
inc dword [esi + 0x1c]
lea edx, [ebp - 4]
call fcn.004e51d0
lea eax, [ebp - 0x38]
push eax
mov edx, 0x4e7639
lea eax, [ebp - 0x3c]
call fcn.004e5118
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x3c]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x40]
pop eax
call fcn.004e51d0
mov eax, edi
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004e518c
mov dl, 1
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2fc]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x402f8a
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0x98
mov edi, eax
xor eax, eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 0xa0]
call fcn.00487cdc
lea edx, [ebp - 0x44]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x48]
inc dword [esi + 0x1c]
mov eax, str.UPDATE_sitelist_SET_vizitorsperdeyvizitorsperdey1_allvisitornumallvisitornum1_WHERE_id
call fcn.004e52d8
lea edx, [ebp - 0x48]
push edx
mov edx, 0x4e7698
lea eax, [ebp - 0x4c]
call fcn.004e5118
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x4c]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x50]
pop eax
call fcn.004e51d0
mov eax, edi
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004e518c
mov eax, dword [ebx + 0x2f8]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_ExecSQL_qqrv
xor edx, edx
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov eax, dword [ebx + 0x2fc]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x2fc]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_GetQuery_qqrv
mov word [esi + 0x10], 0xa4
mov edi, eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea edx, [ebp - 0x54]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 0xa0]
call fcn.00487cdc
lea edx, [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x58]
inc dword [esi + 0x1c]
mov eax, str.INSERT_INTO_vizitorips__siteid_ip_date__VALUES__
call fcn.004e52d8
lea edx, [ebp - 0x58]
push edx
mov edx, 0x4e76cc
lea eax, [ebp - 0x5c]
call fcn.004e5118
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x5c]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x60]
pop eax
call fcn.004e51d0
lea eax, [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x64], edx
lea ecx, [ebp - 0x64]
inc dword [esi + 0x1c]
lea edx, [ebp - 4]
call fcn.004e51d0
lea eax, [ebp - 0x64]
push eax
mov edx, str._CURDATE___
lea eax, [ebp - 0x68]
call fcn.004e5118
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x68]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x6c]
pop eax
call fcn.004e51d0
mov eax, edi
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004e518c
mov eax, dword [ebx + 0x2fc]
call sym.VIRUS.exe__Mysqldbtables_TmySQLQuery_ExecSQL_qqrv
mov word [esi + 0x10], 0xb0
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004e51bc
mov eax, dword [ebp + 8]
mov edx, 2
mov word [esi + 0x10], 0xbc
push eax
lea eax, [ebp - 8]
dec dword [esi + 0x1c]
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004e518c
pop eax
mov word [esi + 0x10], 0xb0
inc dword [esi + 0x1c]
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x403032
mov word [esi + 0x10], 0xc8
mov edx, 0x4e76dd
lea eax, [ebp - 0x70]
call fcn.004e5118
inc dword [esi + 0x1c]
lea edx, [ebp - 0x70]
lea eax, [ebp - 8]
call fcn.004e51bc
dec dword [esi + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004e518c
mov eax, dword [ebx + 0x2fc]
call fcn.00467280
mov word [esi + 0x10], 0x14
inc dword [ebp - 0x9c]
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebp - 0x98]
jl 0x402b12
mov word [esi + 0x10], 0xd4
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004e51bc
mov eax, dword [ebp + 8]
mov edx, 2
mov word [esi + 0x10], 0xe0
push eax
lea eax, [ebp - 8]
dec dword [esi + 0x1c]
call fcn.004e518c
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004e518c
pop eax
mov word [esi + 0x10], 0xd4
inc dword [esi + 0x1c]
mov edx, dword [esi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret