Function at 0x40b6b3
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xc
call fcn.0042f61a
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x10], 0
push 0x110001
push 0x1601335d
push 0x52010001
push 0x110002
push 0x16013361
push 0x52010001
push 2
mov eax, 0x10
mov ebx, 0x4c75d0
call fcn.0042f644
add esp, 0x1c
push 0
push 0x540160
push 0xffffffffffffffff
push 8
push 0x16012863
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0
push 0xff
push 0xffffffffffffffff
push 0x10
push 0x16012863
push 0x52010001
call fcn.0042f638
add esp, 0x18
cmp dword [ebp + 8], 0xffffffff
jne 0x40b78f
mov eax, str.select_d_id_d_tupian_d_tu_from_mac_vod
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b786
push ebx
call fcn.0042f620
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b805
cmp dword [ebp + 8], 0
jne 0x40b7b8
mov eax, str._select_d_id_d_tupian_d_tu_from_mac_vod_where_to_days_d_gxsj___to_days_now___
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b7af
push ebx
call fcn.0042f620
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b805
cmp dword [ebp + 8], 1
jne 0x40b7e1
mov eax, str.SELECT_d_id_d_tupian_d_tu_FROM_mac_vod_where_DATE_SUB_CURDATE____INTERVAL_7_DAY____date_d_gxsj_
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b7d8
push ebx
call fcn.0042f620
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b805
cmp dword [ebp + 8], 2
jne 0x40b805
mov eax, str.SELECT_d_id_d_tupian_d_tu_FROM_mac_vod_WHERE_DATE_FORMAT__d_gxsj___Y_m____DATE_FORMAT__CURDATE_______Y_m__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b801
push ebx
call fcn.0042f620
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b830
mov eax, 0x53c7f1
push eax
push 0x110002
push 0x16013361
push 0x52010001
push 4
mov eax, 0x10
mov ebx, 0x4c7630
call fcn.0042f644
add esp, 0x34
push 0xffffffffffffffff
push 0xa
push 0x16013361
push 0x52010001
call fcn.0042f63e
add esp, 0x10
push 0
push eax
push 0xffffffffffffffff
push 0xc
push 0x16012862
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0xffffffffffffffff
push 0xc
push 0x16012862
push 0x52010001
call fcn.0042f63e
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x430b40
call fcn.0042f614
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push 0xffffffffffffffff
push 8
push 0x16012864
push 0x52010001
call fcn.0042f638
add esp, 0x18
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b8e4
push ebx
call fcn.0042f620
add esp, 4
push 0x110002
push 0x16013361
push 0x52010001
push 1
mov eax, 0x10
mov ebx, 0x4c7e40
call fcn.0042f644
add esp, 0x10
mov ecx, 0
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0042f61a
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
mov dword [edi], 0
add edi, 4
mov ebx, dword [0x67100c]
call fcn.0040101d
pop edx
test ecx, ecx
je 0x40b99c
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b961
push ebx
call fcn.0042f620
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b975
push ebx
call fcn.0042f620
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b989
push ebx
call fcn.0042f620
add esp, 4
pop ebx
call fcn.0042f620
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40b94c
pop edx
pop edi
test edx, edx
je 0x40b9d7
mov ebx, edi
push edx
push ebx
push 0xc
call fcn.0042f61a
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop edx
add ebx, 4
dec edx
jne 0x40b9a6
push dword [0x67100c]
call fcn.0042f620
add esp, 4
pop eax
mov dword [0x67100c], eax
push 0xffffffffffffffff
push 0xc
push 0x16012862
push 0x52010001
call fcn.0042f63e
add esp, 0x10
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x40bc4b
push reloc.OLEAUT32.dll_SysReAllocString
push 0
lea eax, [ebp - 8]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.d_tu
push 0x110002
push 0x16013361
push 0x52010001
push 3
mov eax, 0x10
mov ebx, 0x4c7da0
call fcn.0042f644
add esp, 0x28
cmp dword [ebp - 8], 0
jne 0x40bbc0
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push reloc.WS2_32.dll_connect
push 0
push dword [ebp - 0x14]
push reloc.WS2_32.dll_connect
push 0
push str.d_id
push 0x110002
push 0x16013361
push 0x52010001
push 3
mov eax, 0x10
mov ebx, 0x4c7a80
call fcn.0042f644
add esp, 0x28
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
push reloc.WS2_32.dll_connect
push 0
push dword [ebp - 0x14]
push reloc.WS2_32.dll_connect
push 0
push str.d_tupian
push 0x110002
push 0x16013361
push 0x52010001
push 3
mov eax, 0x10
mov ebx, 0x4c7a80
call fcn.0042f644
add esp, 0x28
push 0x67100c
push 4
mov eax, 2
call fcn.0042f60e
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [0x67100c]
mov dword [ebp - 0x18], ebx
call fcn.0040101d
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x18]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x40bb23
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x18]
call fcn.0042f632
add esp, 8
mov dword [0x67100c], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x1c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x14]
push edi
push eax
push 0xc
call fcn.0042f61a
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40bb7d
push eax
mov ebx, eax
call fcn.004010da
inc eax
push eax
call fcn.0042f61a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40bb9c
push eax
mov ebx, eax
call fcn.004010da
inc eax
push eax
call fcn.0042f61a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x40bbb9
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042f61a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
push 0xffffffffffffffff
push 0xd
push 0x16012862
push 0x52010001
call fcn.0042f63e
add esp, 0x10
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x53c79a]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004011a1
push 0
push eax
push 0xffffffffffffffff
push 0xd
push 0x16012862
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0x110002
push 0x16013361
push 0x52010001
push 1
mov eax, 0x10
mov ebx, 0x4c7e60
call fcn.0042f644
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40bc44
jmp 0x40bc4b
pop eax
pop ecx
jmp 0x40ba03
add esp, 8
push 0
push 0
push 0xffffffffffffffff
push 0xd
push 0x16012862
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0
push 0x5402c0
push 0xffffffffffffffff
push 8
push 0x16012863
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0
push 0xff00
push 0xffffffffffffffff
push 0x10
push 0x16012863
push 0x52010001
call fcn.0042f638
add esp, 0x18
mov ebx, dword [0x67100c]
call fcn.00401004
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x430b40
call fcn.0042f614
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 8
push 0x16012866
push 0x52010001
call fcn.0042f638
add esp, 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bcfd
push ebx
call fcn.0042f620
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40bd29
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x1601286e
push 0x52010001
call fcn.0042f638
add esp, 0x18
jmp 0x40bd63
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x1601286d
push 0x52010001
call fcn.0042f638
add esp, 0x18
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x16012e65
push 0x52010001
call fcn.0042f638
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bd73
push ebx
call fcn.0042f620
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40bd87
push ebx
call fcn.0042f620
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40bd9b
push ebx
call fcn.0042f620
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40bdaf
push ebx
call fcn.0042f620
add esp, 4
pop ebx
call fcn.0042f620
add esp, 4
mov esp, ebp
pop ebp
ret 4