Function at 0x10008798
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
push 8
call fcn.1001f45c
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x100a9df1
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 - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, str.SELECT_platform_user_id_expire_time_FROM_platform_replace_WHERE_platform_type_NOT_IN__SELECT_platform_type_FROM_platform_replace_WHERE_platform_type_LIKE_jdlm___
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100087fc
push ebx
call fcn.1001f456
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 0x101966fc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 3
push 0x101966fc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov eax, 0x100aa5f3
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x101966fc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10008862
push ebx
call fcn.1001f456
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 0x101966fc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [ebx], 0
jle 0x1000888a
mov eax, dword [ebx + 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 0x10008bb0
mov ebx, dword [ebp - 8]
push ebx
mov eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x100088d3
push 0x274
push 0x4025341
push 3
call fcn.1001f468
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x100088e6
call fcn.10002d31
mov eax, dword [ebp + ecx*4 - 0x24]
jmp 0x100088d5
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x10008905
mov eax, 0x100a9705
push eax
push 1
mov ebx, 0x1001f9b0
call fcn.1001f462
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push 0x80000301
push 0
push 0xffffffff
push 0x80000301
push 0
push 6
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 3
mov ebx, 0x10020620
call fcn.1001f462
add esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp - 8]
push ebx
mov eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x1000898b
push 0x2d6
push 0x4025341
push 3
call fcn.1001f468
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x1000899e
call fcn.10002d31
mov eax, dword [ebp + ecx*4 - 0x24]
jmp 0x1000898d
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x100089bd
mov eax, 0x100a9705
push eax
push 1
mov ebx, 0x1001f9b0
call fcn.1001f462
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 6
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 3
mov ebx, 0x10020620
call fcn.1001f462
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push 0
mov ebx, 0x10020ce0
call fcn.1001f462
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.10008735
add esp, 8
fstp qword [ebp - 0x3c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.10008735
add esp, 8
fstp qword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.1000876d
add esp, 8
fstp qword [ebp - 0x3c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1000876d
add esp, 8
fstp qword [ebp - 0x34]
fld qword [ebp - 0x3c]
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 0x41
jne 0x10008af2
push 0
mov ebx, 0x10020ce0
call fcn.1001f462
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.10008735
add esp, 8
fstp qword [ebp - 0x60]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10008735
add esp, 8
fstp qword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.1000876d
add esp, 8
fstp qword [ebp - 0x60]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.1000876d
add esp, 8
fstp qword [ebp - 0x58]
fld qword [ebp - 0x60]
fcomp qword [ebp - 0x58]
fnstsw ax
test ah, 1
je 0x10008af2
mov eax, 1
jmp 0x10008af7
mov eax, 0
test eax, eax
je 0x10008ba8
mov ebx, dword [ebp - 8]
push ebx
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x10008b31
push 0x38d
push 0x4025341
push 3
call fcn.1001f468
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x10008b44
call fcn.10002d31
mov eax, dword [ebp + ecx*4 - 0x24]
jmp 0x10008b33
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 8]
push ebx
mov eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x10008b80
push 0x38d
push 0x4025341
push 3
call fcn.1001f468
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x10008b93
call fcn.10002d31
mov eax, dword [ebp + ecx*4 - 0x2c]
jmp 0x10008b82
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.10008c5e
pop eax
pop ebx
pop ecx
jmp 0x10008893
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10008bd1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10008bcd
imul eax, dword [ebx]
jmp 0x10008bc2
mov ecx, eax
test ecx, ecx
je 0x10008bf0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10008be9
push ebx
push eax
call fcn.1001f456
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10008bd7
call fcn.1001f456
add esp, 4
mov eax, 0x100a9df1
mov dword [ebp - 8], eax
jmp 0x10008c05
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10008c15
push ebx
call fcn.1001f456
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10008c33
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10008c2f
imul eax, dword [ebx]
jmp 0x10008c24
mov ecx, eax
test ecx, ecx
je 0x10008c52
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10008c4b
push ebx
push eax
call fcn.1001f456
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10008c39
call fcn.1001f456
add esp, 4
mov esp, ebp
pop ebp
ret