Function at 0x1000a801
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 8
call fcn.10031423
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x100bb8b1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
push 0xc
call fcn.10031423
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 [ebx], 0x100bbef7
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 1
jne 0x1000aa7f
cmp dword [ebp + 0xc], 0
je 0x1000a881
cmp dword [ebp + 0x10], 0
je 0x1000a881
xor eax, eax
jmp 0x1000a886
mov eax, 1
test eax, eax
je 0x1000a898
mov eax, 1
jmp 0x1000ab0c
push 0
mov ebx, 0x100333d0
call fcn.10031429
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x100bb901]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fchs
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10001d92
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 5
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 3
mov ebx, 0x10032d10
call fcn.10031429
add esp, 0x28
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, str._00:00:00
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, str.yyyy_MM_dd
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10009e87
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1000a941
push ebx
call fcn.1003141d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x1000a951
push ebx
call fcn.1003141d
add esp, 4
push 0x100bbc47
push dword [ebp - 0x44]
push str._AND_itime___
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x100bbd74
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push str.SELECT_config_FROM_reward_history_WHERE_wxid__
mov ecx, 7
call fcn.1000106f
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1000a992
push ebx
call fcn.1003141d
add esp, 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0x101a86f8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1000a9be
push ebx
call fcn.1003141d
add esp, 4
mov ebx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], 0
jle 0x1000a9cb
mov eax, dword [ebx + 4]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1000aa66
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 8]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, str._valid
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000aa51
push ebx
call fcn.1003141d
add esp, 4
cmp dword [ebp - 0x1c], 2
jne 0x1000aa5e
inc dword [ebp - 0x10]
pop eax
pop ebx
pop ecx
jmp 0x1000a9d4
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x10], eax
jl 0x1000aa7f
mov eax, 2
jmp 0x1000ab0c
cmp dword [ebp + 8], 0
jne 0x1000ab02
push str._AND_type__
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x100bbd74
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push str.SELECT_config_FROM_reward_history_WHERE_wxid__
mov ecx, 5
call fcn.1000106f
add esp, 0x14
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x101a86f8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000aade
push ebx
call fcn.1003141d
add esp, 4
mov ebx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], 0
jle 0x1000aaeb
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x1000ab02
mov eax, 3
jmp 0x1000ab0c
mov eax, 0
jmp 0x1000ab0c
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000ab2b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000ab27
imul eax, dword [ebx]
jmp 0x1000ab1c
mov ecx, eax
test ecx, ecx
je 0x1000ab4a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000ab43
push ebx
push eax
call fcn.1003141d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000ab31
call fcn.1003141d
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.1003141d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14