Function at 0x4b6d00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da804
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x2c]
call fcn.004180e0
mov byte [ebp - 4], 4
push 0x4f45b7
lea ecx, [ebp - 0x34]
call fcn.00408100
mov byte [ebp - 4], 5
push 0x4fbc9c
lea eax, [ebp + 0xc]
push eax
call fcn.00417ed0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b6da9
push str.SELECT_union_union_union_union_CHANNEL__SUM_olduser_money__promotion_money__ad_money___SUM_active___100__t_t_tFROM_daily_finance_duba__t_t_tWHERE_date_startdate_and_date_enddate_AND_tid1all_AND_tid2all_AND_tod1all_AND_tod2all_AND_active_0__t_t_tGROUP_BY_tid1_tid2_tod1_tod2
lea ecx, [ebp - 0x34]
call fcn.00408220
cmp dword [ebp + 0x18], 0
je 0x4b6da7
push str.SELECT_CONCAT_tid1___tid2___tod1___tod2__CHANNEL__SUM_olduser_money__promotion_money__ad_money___SUM_active___100__t_t_t_t_t_FROM_daily_finance_duba__t_t_t_t_t_WHERE_date_startdate_and_date_enddate_AND_tid1_all_AND_tid2_all_AND_tod1_all_AND_tod2_all_AND_active_0__t_t_t_t_t_GROUP_BY_tid1_tid2_tod1_tod2
lea ecx, [ebp - 0x34]
call fcn.00408220
jmp 0x4b6e22
push 0x4fbf10
lea edx, [ebp + 0xc]
push edx
call fcn.00417ed0
add esp, 8
movzx eax, al
test eax, eax
je 0x4b6de3
push str.SELECT_union_union_CHANNEL__SUM_promotion_money__ad_money___SUM_active___100__t_t_tFROM_daily_finance_haoya52__t_t_tWHERE_date_startdate_and_date_enddate_AND_tid1_in__220__300___and_tid2all_AND_active_0__t_t_tGROUP_BY_tid1_tid2
lea ecx, [ebp - 0x34]
call fcn.00408220
cmp dword [ebp + 0x18], 0
je 0x4b6de1
push str.SELECT_CONCAT_tid1___tid2__CHANNEL__SUM_promotion_money__ad_money___SUM_active___100__t_t_t_t_t_FROM_daily_finance_haoya52__t_t_t_t_t_WHERE_date_startdate_and_date_enddate_AND_tid1_all_AND_tid2_all_AND_active_0__t_t_t_t_t_GROUP_BY_tid1_tid2
lea ecx, [ebp - 0x34]
call fcn.00408220
jmp 0x4b6e22
push 0x4fc10c
lea ecx, [ebp + 0xc]
push ecx
call fcn.00417ed0
add esp, 8
movzx edx, al
test edx, edx
je 0x4b6e1d
push str.SELECT_union_union_CHANNEL__SUM_promotion_money__ad_money___SUM_active___100__t_t_tFROM_daily_finance_fastpic__t_t_tWHERE_date_startdate_and_date_enddate_AND_tid1300_and_tid2all__AND_active_0__t_t_tGROUP_BY_tid1_tid2
lea ecx, [ebp - 0x34]
call fcn.00408220
cmp dword [ebp + 0x18], 0
je 0x4b6e1b
push str.SELECT_CONCAT_tid1___tid2__CHANNEL__SUM_promotion_money__ad_money___SUM_active___100__t_t_t_t_t_FROM_daily_finance_fastpic__t_t_t_t_t_WHERE_date_startdate_and_date_enddate_AND_tid1_all_AND_tid2_all_AND_active_0__t_t_t_t_t_GROUP_BY_tid1_tid2
lea ecx, [ebp - 0x34]
call fcn.00408220
jmp 0x4b6e22
jmp 0x4b6ee7
lea ecx, [ebp + 0x10]
call fcn.00401aa0
push eax
push 0x4fc324
lea ecx, [ebp - 0x34]
call fcn.004082f0
lea ecx, [ebp + 0x14]
call fcn.00401aa0
push eax
push 0x4fbf1c
lea ecx, [ebp - 0x34]
call fcn.004082f0
lea ecx, [ebp - 0x34]
call fcn.00401aa0
push eax
mov eax, dword [ebp - 0x40]
push eax
call fcn.004348e0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b6e6b
jmp 0x4b6ee7
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00432860
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call fcn.00432a90
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.004343f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b6ede
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x38]
call fcn.00408100
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call fcn.0047ddf7
add esp, 4
fstp dword [ebp - 0x44]
fld dword [ebp - 0x44]
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x2c]
fstp dword [ebp - 0x48]
call fcn.0040c060
fld dword [ebp - 0x48]
fstp dword [eax]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.00401070
jmp 0x4b6e83
mov eax, dword [ebp - 0x30]
push eax
call fcn.004317e0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041e7c0
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00401070
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040b270
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00401070
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00401070
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00401070
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14