Function at 0x406669
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push dword [ebp + 0x10]
call fcn.0040181c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4066ad
mov eax, 0
jmp 0x406af0
fild dword [ebp + 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fsub qword [0x490728]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp + 0x1c]
fstp qword [ebp - 0x28]
fmul qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00401104
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 1
jne 0x406783
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x4901df
push dword [ebp - 0x18]
push 0x490685
push dword [ebp - 0x14]
push 0x490730
mov ecx, 5
call fcn.004010a8
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406756
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406766
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40677a
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x4069c9
cmp dword [ebp + 0x14], 2
jne 0x40688c
push 0x490179
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.0040156d
add esp, 8
cmp eax, 0
jne 0x4067e2
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push getpeername
push 0
push 0x4906b9
push 3
mov ebx, 0x410820
call fcn.0040f22f
add esp, 0x28
mov eax, 0
jmp 0x406af0
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x490220
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str._and__user__like___
push dword [ebp - 0x18]
push 0x490685
push dword [ebp - 0x14]
push 0x490730
mov ecx, 7
call fcn.004010a8
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40685f
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40686f
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406883
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x4069c9
cmp dword [ebp + 0x14], 3
jne 0x4069c9
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x4901df
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str._and_cardid
push dword [ebp - 0x18]
push 0x490685
push dword [ebp - 0x14]
push str.SELECT__usename__FROM_wycard_WHERE_pid
mov ecx, 7
call fcn.004010a8
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406913
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406923
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406937
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 8], eax
push getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406959
mov eax, 0x490179
push eax
push 0x80000301
push 0
push 0xb1
push 3
mov eax, 1
mov ebx, 0x45ee00
call fcn.0040f23b
add esp, 0x28
test eax, eax
je 0x40698c
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4069a8
push eax
mov ebx, eax
call fcn.0040103d
inc eax
push eax
call fcn.0040f235
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4069bb
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
jmp 0x406af0
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp + 0x1c]
push 1
mov ebx, 0x410330
call fcn.0040f22f
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0x4907a4
push dword [ebp - 0x14]
push str.LIMIT
push dword [ebp - 8]
mov ecx, 5
call fcn.004010a8
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406a3a
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406a4a
push ebx
call fcn.0040f229
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406a5e
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov dword [ebp - 8], eax
push getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406a80
mov eax, 0x490179
push eax
push 0x80000301
push 0
push 0xb1
push 3
mov eax, 1
mov ebx, 0x45ee00
call fcn.0040f23b
add esp, 0x28
test eax, eax
je 0x406ab3
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406acf
push eax
mov ebx, eax
call fcn.0040103d
inc eax
push eax
call fcn.0040f235
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406ae2
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
jmp 0x406af0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406b01
push ebx
call fcn.0040f229
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406b11
push ebx
call fcn.0040f229
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c