Function at 0x524ff7
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
push 8
call fcn.005dc81a
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x6b42b5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x6d175a
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401a1d
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x52505d
push ebx
call fcn.005dc820
add esp, 4
mov eax, 0x6d177d
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x6d1792
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00402c8b
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x52508f
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x52509f
push ebx
call fcn.005dc820
add esp, 4
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0x6b4d58
push dword [0x84b794]
push str.SELECT_wxid_wsh_money_FROM_member_WHERE_my_user
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5250fd
push ebx
call fcn.005dc820
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x5256f3
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 8]
push ebx
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
jns 0x525164
push 0x1c6
push 0x408b3bc
push 4
call fcn.005dc826
add esp, 0xc
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x525186
push 0x1c6
push 0x408b3bc
push 3
call fcn.005dc826
add esp, 0xc
xor edx, edx
cmp eax, dword [ebx]
jl 0x5251a3
push 0x1c6
push 0x408b3bc
push 1
call fcn.005dc826
add esp, 0xc
add ebx, 4
dec ecx
je 0x5251b4
call fcn.0041b0f6
mov eax, dword [ebp + ecx*4 - 0x18]
jmp 0x525188
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0x6b4d58
push dword [0x84b794]
push 0x6b749c
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push str.SELECT_SUM_user_yj__FROM_register_order_WHERE_wxid
mov ecx, 5
call fcn.0040108c
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5252b8
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x5252c8
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x5252d8
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x5252e8
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x5252f8
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x525308
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x525318
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x525328
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x525338
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x525348
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x525358
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x525368
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x525378
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x525388
push ebx
call fcn.005dc820
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x52539b
mov eax, 0x6b4435
push eax
push 1
mov ebx, 0x5dd7a0
call fcn.005dc82c
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp - 8]
push ebx
mov eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
dec eax
jns 0x5253dd
push 0x2be
push 0x408b3bc
push 4
call fcn.005dc826
add esp, 0xc
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x5253ff
push 0x2be
push 0x408b3bc
push 3
call fcn.005dc826
add esp, 0xc
xor edx, edx
cmp eax, dword [ebx]
jl 0x52541c
push 0x2be
push 0x408b3bc
push 1
call fcn.005dc826
add esp, 0xc
add ebx, 4
dec ecx
je 0x52542d
call fcn.0041b0f6
mov eax, dword [ebp + ecx*4 - 0x20]
jmp 0x525401
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x52544c
mov eax, 0x6b4435
push eax
push 1
mov ebx, 0x5dd7a0
call fcn.005dc82c
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x18]
fsub qword [ebp - 0x30]
ftst
fnstsw ax
test ah, 1
je 0x525476
fchs
fcomp qword [0x6b5816]
fnstsw ax
test ah, 0x41
jne 0x5256cb
mov ebx, dword [ebp - 8]
push ebx
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
jns 0x5254b0
push 0x2fe
push 0x408b3bc
push 4
call fcn.005dc826
add esp, 0xc
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x5254d2
push 0x2fe
push 0x408b3bc
push 3
call fcn.005dc826
add esp, 0xc
xor edx, edx
cmp eax, dword [ebx]
jl 0x5254ef
push 0x2fe
push 0x408b3bc
push 1
call fcn.005dc826
add esp, 0xc
add ebx, 4
dec ecx
je 0x525500
call fcn.0041b0f6
mov eax, dword [ebp + ecx*4 - 0x18]
jmp 0x5254d4
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0x6b4d58
push dword [0x84b794]
push 0x6b5a60
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 0x6b6834
push dword [ebp - 0x10]
push str.UPDATE_member_SET_wsh_money
mov ecx, 7
call fcn.0040108c
add esp, 0x1c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x52555f
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
jns 0x525588
push 0x3ac
push 0x408b3bc
push 4
call fcn.005dc826
add esp, 0xc
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x5255aa
push 0x3ac
push 0x408b3bc
push 3
call fcn.005dc826
add esp, 0xc
xor edx, edx
cmp eax, dword [ebx]
jl 0x5255c7
push 0x3ac
push 0x408b3bc
push 1
call fcn.005dc826
add esp, 0xc
add ebx, 4
dec ecx
je 0x5255d8
call fcn.0041b0f6
mov eax, dword [ebp + ecx*4 - 0x18]
jmp 0x5255ac
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
push ebx
mov eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
dec eax
jns 0x52560b
push 0x3ac
push 0x408b3bc
push 4
call fcn.005dc826
add esp, 0xc
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x52562d
push 0x3ac
push 0x408b3bc
push 3
call fcn.005dc826
add esp, 0xc
xor edx, edx
cmp eax, dword [ebx]
jl 0x52564a
push 0x3ac
push 0x408b3bc
push 1
call fcn.005dc826
add esp, 0xc
add ebx, 4
dec ecx
je 0x52565b
call fcn.0041b0f6
mov eax, dword [ebp + ecx*4 - 0x20]
jmp 0x52562f
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x10]
push 0x6d17cd
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push 0x6d17da
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 0x6d17e7
mov ecx, 6
call fcn.0040108c
add esp, 0x18
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x6d1792
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.00402c8b
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x5256bb
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x5256cb
push ebx
call fcn.005dc820
add esp, 4
push 0x84b7a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
push 1
push 1
push 0x1e
call fcn.004030ba
pop eax
pop ebx
pop ecx
jmp 0x52511e
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x525714
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x525710
imul eax, dword [ebx]
jmp 0x525705
mov ecx, eax
test ecx, ecx
je 0x525733
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x52572c
push ebx
push eax
call fcn.005dc820
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x52571a
call fcn.005dc820
add esp, 4
mov eax, 0x6b42b5
mov dword [ebp - 8], eax
mov eax, 0x6d17fe
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x6d1792
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00402c8b
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x525775
push ebx
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x525785
push ebx
call fcn.005dc820
add esp, 4
jmp 0x52578a
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x5257a8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x5257a4
imul eax, dword [ebx]
jmp 0x525799
mov ecx, eax
test ecx, ecx
je 0x5257c7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x5257c0
push ebx
push eax
call fcn.005dc820
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x5257ae
call fcn.005dc820
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5257df
push ebx
call fcn.005dc820
add esp, 4
mov esp, ebp
pop ebp
ret